Companion

object Companion

Functions

Link copied to clipboard
fun create(content: ByteArray, mimeType: String, fileName: String, friendlyName: String?): ContentDescriptor

Constructs new ContentDescriptor with ByteArray data.

fun create(content: Uri, context: Context, mimeType: String, fileName: String, friendlyName: String? = null): ContentDescriptor

Constructs new ContentDescriptor with android.net.Uri data.

Link copied to clipboard
operator fun invoke(content: ByteArray, mimeType: String, fileName: String, friendlyName: String?): ContentDescriptor

Constructs new ContentDescriptor with ByteArray data.

operator fun invoke(content: Uri, context: Context, mimeType: String, fileName: String, friendlyName: String? = null): ContentDescriptor

Constructs new ContentDescriptor with android.net.Uri data.