User Busy Status
#
OverviewUser can set their busy status upon his preference. When busy status is enabled if any message is received to the user, the busy message is sent automatically to the sender of the message.
#
Enable/Disable User Busy statusUser can enable and disable their busy status using the below method.
Argument | Type | Description |
---|---|---|
ENABLE_BUSY_STATUS | Bool | true enables busy status and false disables busy status |
COMPLETION | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
#
Set User Busy statusUser can set the busy status message for their one to one chat conversation using the below method.
Argument | Type | Description |
---|---|---|
BUSY_STATUS_TEXT | String | busy status text cannot be longer than 140 characters |
COMPLETION | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
#
Get current User busy statusUser can get their current user busy status using the below method.
Refer this doc to know more about BusyStatus Class
#
Check User Busy status is enabledUser can check whether their busy status is enabled or disabled.
info
While user Logging the app, user busy status will be synced from server by calling the method ChatManager.getUserBusyStatusFromServer() and status will be updated to ChatManager.shared.isBusyStatusEnabled()
#
Get the list of User saved busy statusesUser can get their list of previously saved user busy statuses by calling the below method.
info
This list also contains some pre defined values.
#
Delete a user Busy StatusUser can delete their busy status by calling the below method.
Argument | Type | Description |
---|---|---|
STATUS_ID | String | Object of the user busy status that has to be deleted |
caution
User cannot delete a busy status which is currently selected.