06. User Status - gappein/gappein-chat-sdk GitHub Wiki

Case: 01

If you want to set text status of a user use,

ChatClient.getInstance().setUserStatus("text_Status",{
//User Status set successfully
},{exception->
//Handle the exception
})

Case :02

If you want to get the status of a user,

ChatClient.getInstance().getUserStatus("user_token",{
//User Status in String
},{exception->
//Handle the exception
})

Tip: If you don't pass userToken then the status would be returned for the current user