createDocument

@Nullable
open fun createDocument(@NonNull content: @NonNull ContentResolver, @NonNull parentDocumentUri: @NonNull Uri, @NonNull mimeType: @NonNull String, @NonNull displayName: @NonNull String): @Nullable Uri(source)

Create a new document with given MIME type and display name.

Return

newly created document, or null if failed

Parameters

content

the resolver to use to create the document.

parentDocumentUri
mimeType

MIME type of new document

displayName

name of new document