UploadSource

class UploadSource(val bytes: ByteArray, val name: String, val mimeType: String)

A file the visitor is sending: its bytes, name and MIME type. Built by the SDK's pickers (or by the host) and handed to ChatEngine.attach.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray, name: String, mimeType: String)

Properties

Link copied to clipboard

File contents.

Link copied to clipboard

A picture (shown as a thumbnail).

Link copied to clipboard

MIME type (image/jpeg, application/pdf, …).

Link copied to clipboard

File name shown to the team.

Link copied to clipboard
val size: Int

Size in bytes.

Functions

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