Builder

class Builder

Constructors

Link copied to clipboard
fun Builder()
Link copied to clipboard
fun Builder(messageRequest: MessageRequest)

Properties

Link copied to clipboard
var attachment: Attachment?

Attachment object

Link copied to clipboard
var attachmentCallback: AttachmentCallback?
Link copied to clipboard
var callback: CompletionCallback?
Link copied to clipboard
var conversationId: String

The identifier of the current conversation.

Link copied to clipboard
var isFromNfc: Boolean

Whether this message is sent automatically using an NFC Tag or not.

Link copied to clipboard
var isRequireAcknowledgement: Boolean

If the message require acknowledgement

Link copied to clipboard
var message: String?

Message content text

Link copied to clipboard
var progressChanged: (attachmentId: Int, progress: Int, total: Int) -> Unit? = null

This callback is called once the message has an attachment that will be uploaded.

Functions

Link copied to clipboard
fun attachment(attachment: Attachment?): <ERROR CLASS>

Set the attachment object.

Link copied to clipboard
fun attachmentCallback(attachmentCallback: AttachmentCallback?): <ERROR CLASS>
Link copied to clipboard
fun build(): MessageRequest
Link copied to clipboard
fun callback(callback: CompletionCallback?): <ERROR CLASS>
Link copied to clipboard
fun conversationId(conversationId: String): <ERROR CLASS>

Set the requested conversationId.

Link copied to clipboard
fun isFromNfc(isFromNfc: Boolean): <ERROR CLASS>

Whether this message is sent automatically using an NFC Tag or not.

Link copied to clipboard
fun isRequireAcknowledgement(requireAcknowledgement: Boolean): <ERROR CLASS>

If the message require acknowledgement

Link copied to clipboard
fun message(message: String?): <ERROR CLASS>

Set the requested message.