Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

06. User Status

Himanshu Singh edited this page Oct 31, 2020 · 1 revision

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