enableDisableBusyStatus static method

Future<void> enableDisableBusyStatus({
  1. required bool enable,
  2. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Enables or disables the busy status feature.

This method allows the application to enable or disable the busy status feature. When the feature is enabled, it indicates that the user is busy and may not be available to respond to messages. When disabled, the user is considered available for communication.

The enable parameter specifies whether to enable or disable the busy status:

  • If true, the busy status feature will be enabled.
  • If false, the busy status feature will be disabled.

The flyCallBack parameter is a function that will be called upon completion of the operation. It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.

Example usage:

Mirrorfly.enableDisableBusyStatus(enable: true,flyCallBack: (response){

});

Implementation

static Future<void> enableDisableBusyStatus(
    {required bool enable,
    required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance
      .enableDisableBusyStatus(enable, flyCallBack);
}