AttachedFile

actual class AttachedFile : IAttachment

Android specific AttachedFile

Example:

AttachedFile.fromUri(
context: Context
url: Uri(path: "path/to/file"),
originalName: "file name",
mimeType: "mime/type",
fileSize: 1000
)
expect class AttachedFile : IAttachment
actual data class AttachedFile : IAttachment

Swift specific AttachedFile

Example:

AttachedFile.Companion.fromURL(
url: NSURL(path: "path/to/file"),
originalName: "file name",
mimeType: "mime/type",
fileSize: 1000
)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion

Functions

getByteArray
Link copied to clipboard
open override fun getByteArray(): ByteArray

Get the byte array of file.

open override fun getByteArray(): ByteArray

Get the byte array of file.

getFilePath
Link copied to clipboard
open override fun getFilePath(): String

Get the path to file.

open override fun getFilePath(): String

Get the path to file.

Properties

fileSize
Link copied to clipboard
open override val fileSize: Int

File size in bytes.

open override val fileSize: Int

File size in bytes.

mimeType
Link copied to clipboard
open override val mimeType: String

Mime type of file.

open override val mimeType: String

Mime type of file.

originalName
Link copied to clipboard
open override val originalName: String

Original file name.

open override val originalName: String

Original file name.