Lingua

DocumentsProvider.RestoreDocumentFromTrash(String, String) Method

Definition

Restore the specified trash document.

[Android.Runtime.Register("restoreDocumentFromTrash", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetRestoreDocumentFromTrash_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=37)]
public virtual string? RestoreDocumentFromTrash(string documentId, string? targetParentDocumentId);
[<Android.Runtime.Register("restoreDocumentFromTrash", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetRestoreDocumentFromTrash_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=37)>]
abstract member RestoreDocumentFromTrash : string * string -> string
override this.RestoreDocumentFromTrash : string * string -> string

Parameters

documentId
String

the document to restore.

targetParentDocumentId
String

the target location to restore the document to. If null, the restore path will be obtained from the documentId

Returns

the document id of the restored document or return null in case of failure.

Attributes

Remarks

Restore the specified trash document.

Upon restoring a document, the document will be restored from trash to the specified target parent document.

Android reference for android.provider.DocumentsProvider.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