User Busy Status

Overview#

User 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 status#

User can enable and disable their busy status using the below method.

Mirrorfly.enableDisableBusyStatus(enable: ENABLE_BUSY_STATUS, flyCallBack: (FlyResponse response) {
if (isSuccess) {
// busy status enable/disabled updated successfully
} else {
// updation failed print throwable for more info
}
});
ArgumentTypeDescription
ENABLE_BUSY_STATUSbooltrue enables busy status and false disables busy status

Set User Busy status#

User can set the busy status message for their one to one chat conversation using the below method.

Mirrorfly.setMyBusyStatus(busyStatus: BUSY_STATUS_TEXT, flyCallBack: (FlyResponse response) {
if(isSuccess){
// Busy status message updated successfully
}else{
// updation failed print throwable for more info
}
});
ArgumentTypeDescription
BUSY_STATUS_TEXTStringbusy status text cannot be longer than 140 characters

Get User Busy settings status#

User can get their busy settings status by calling the below method.

bool? busyStatusEnabled = await Mirrorfly.isBusyStatusEnabled();

Get current user busy status#

User can get their current user busy status using the below method.

var value = await Mirrorfly.getMyBusyStatus();

Refer this doc to know more about BusyStatus Class

Check user busy status is enabled#

User can check whether their busy status is enabled or disabled.

bool isMyBusyStatusEnabled = await Mirrorfly.isBusyStatusEnabled();

Get the list of user saved busy statuses#

User can get their list of previously saved user busy statuses by calling the below method.

var myBusyStatusList = await Mirrorfly.getBusyStatusList();
info

This list also contains some pre defined values.

Delete User Busy status#

User can delete their busy status by calling the below method.

await Mirrorfly.deleteBusyStatus(id: BUSY_STATUS_ID, status: BUSY_STATUS_TEXT, isCurrentStatus: IS_CURRENT_STATUS);
ArgumentTypeDescription
BUSY_STATUS_TEXTStringStatus text
BUSY_STATUS_IDStringid of the Status
IS_CURRENT_STATUSboolis the status currently set
caution

User cannot delete a busy status which is currently selected.