create Conversation
fun createConversation( context: Context, conversationName: String?, conversationType: Int, recipients: List<STWRecipient>, isAvailableOnlyRecipients: Boolean, callback: CreationConversationCallback?)
Content copied to clipboard
Call this method to create a new conversation, The created conversation will be empty.
The new conversation will be created based on the users, groups and the conversationType parameters.
Parameters
context
The application context
conversation Name
Conversation name in case of ConversationTypes is ConversationTypes.ONE_TO_MANY or ConversationTypes.GROUP type
conversation Type
One of ConversationTypes value
recipients
The list of MSISDNs (international phone numbers @ fqdn) and/or list of groups (groupName : groupID)
that you want to start a conversation with
(example of users format: [groupName1:1,groupName2:2,1234567891@fqdn1.com,1234567892@fqdn2.com,1234567893@fqdn3.com])Content copied to clipboard
is Available Only Recipients
If the messages will be sent only to the available recipients.Content copied to clipboard
callback
This callback will be invoked to handle operation result : Success : The conversation is successfully created. Error : a local error occurred when trying to create a conversation