invoke
operator fun invoke(content: Uri, context: Context, mimeType: String, fileName: String, friendlyName: String? = null): ContentDescriptor
Constructs new ContentDescriptor with android.net.Uri data.
Parameters
content
Uri for content to be attached, usually a content URI
mimeType
MIME type of data
fileName
obscured name of file
friendlyName
friendly name of file
See also
operator fun invoke(content: ByteArray, mimeType: String, fileName: String, friendlyName: String?): ContentDescriptor
Constructs new ContentDescriptor with ByteArray data.
Parameters
content
DataSource described
mimeType
MIME type of data
fileName
obscured name of file
friendlyName
friendly name of file