Lingua

DocumentsContract.RestoreDocumentFromTrash(ContentResolver, Uri, Uri) Method

Definition

Restores a document from the trash.

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

Parameters

content
ContentResolver
sourceDocumentUri
Uri

trashed document to restore

targetParentDocumentUri
Uri

parent document to restore the document to

Returns

Uri

the restored document, or null if failed.

Attributes

Remarks

Restores a document from the trash.

Android reference for android.provider.DocumentsContract.restoreDocumentFromTrash.

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