Share via


DocumentsContract.CopyDocument(ContentResolver, Uri, Uri) Method

Definition

Copies the given document.

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

Parameters

content
ContentResolver
sourceDocumentUri
Uri

document with Document#FLAG_SUPPORTS_COPY

targetParentDocumentUri
Uri

document which will become a parent of the source document's copy.

Returns

Uri

the copied document, or null if failed.

Attributes

Remarks

Copies the given document.

Java documentation for android.provider.DocumentsContract.copyDocument(android.content.ContentResolver, android.net.Uri, android.net.Uri).

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