sendMessage

fun sendMessage(context: Context, builder: MessageRequest.Builder.() -> Unit = {})

Call this method to send a new message/attachment for an existing conversation.

This method does not create a new conversation if not exist

This method does not allow : an empty message without attachment a none existing conversation

If an attachment exists, this method will attempt to upload it, and if successful, the message will be added to the request queue.

See also

Parameters

context

The application context

builder

A MessageRequest.Builder that can help user to fill parameters such as : message : (String) Message content text attachment : (Attachment) attachment model conversationId : (String) The identifier of the current conversation isRequireAcknowledgement : (Boolean) If true the message required an acknowledgement from recipients isFromNfc : (Boolean) Whether this message is sent automatically using an NFC Tag or not. callback : (CompletionCallback) This callback will be invoked to handle operation result : Success : The message is successfully added to the sending queue. Error : a local error occurred when trying to send message


fun sendMessage(    context: Context,     message: String?,     attachment: Attachment?,     conversationId: String,     builder: MessageRequest.Builder.() -> Unit = {})

Call this method to send a new message/attachment for an existing conversation.

This method does not create a new conversation if not exist

This method does not allow : an empty message without attachment a none existing conversation

If an attachment exists, this method will attempt to upload it, and if successful, the message will be added to the request queue.

See also

Parameters

context

The application context

message

Message content text

attachment
conversationId

The identifier of the current conversation.

builder

A MessageRequest.Builder that can help user to fill parameters such as : isRequireAcknowledgement : (Boolean) If true the message required an acknowledgement from recipients isFromNfc : (Boolean) Whether this message is sent automatically using an NFC Tag or not. callback : (CompletionCallback) This callback will be invoked to handle operation result : Success : The message is successfully added to the sending queue. Error : a local error occurred when trying to send message