invoke

@JvmName(name = "create")
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

context

Context used to resolve content

mimeType

MIME type of data

fileName

obscured name of file

friendlyName

friendly name of file

See also


@JvmName(name = "create")
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

See also