setState

fun setState(query: XMPPChatStateQuery, onCompletion: (SippoResourceError?) -> Unit)

Sets the current state of current chat instance. This method will send an empty Message with the state attached.

Parameters

query

a query for the new State of the chat.

onCompletion

Callback that will be invoked when the request is completed. It will receive a SippoResourceError if any error occurs. In case of success, error will be null.