setStatus

fun setStatus(state: XMPPChatState, onCompletion: (SippoResourceError?) -> Unit)

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

Parameters

state

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.