miniapp / com.rakuten.tech.mobile.miniapp.js.chat / ChatBridgeDispatcher / sendMessageToMultipleContacts

sendMessageToMultipleContacts

abstract fun sendMessageToMultipleContacts(message: MessageToContact, onSuccess: (contactIds: List<String>?) -> Unit, onError: (message: String) -> Unit): Unit

Triggered when Mini App wants to send a message to multiple contacts. Should open a contact chooser which allows the user to choose multiple contacts, and should then send the message to all chosen contacts. Should invoke onSuccess with a list of IDs of the contacts which were successfully sent the message. If the user cancelled sending the message, should invoked onSuccess with null. Should invoke onError when there was an error.