Lingua

DocumentsContract.TrashDocument(ContentResolver, Uri) Method

Definition

Trashes the given document.

[Android.Runtime.Register("trashDocument", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "", ApiSince=37)]
public static Android.Net.Uri? TrashDocument(Android.Content.ContentResolver content, Android.Net.Uri documentUri);
[<Android.Runtime.Register("trashDocument", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "", ApiSince=37)>]
static member TrashDocument : Android.Content.ContentResolver * Android.Net.Uri -> Android.Net.Uri

Parameters

content
ContentResolver
documentUri
Uri

document with Document#FLAG_SUPPORTS_TRASH

Returns

Uri

the trashed document, or null if failed.

Attributes

Remarks

Trashes the given document.

Android reference for android.provider.DocumentsContract.trashDocument.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to