createDocument
open fun createDocument(@NonNull content: ContentResolver, @NonNull parentDocumentUri: Uri, @NonNull mimeType: String, @NonNull displayName: String): 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
directory with FLAG_DIR_SUPPORTS_CREATE
mimeType
MIME type of new document
displayName
name of new document