enableBackupChannels method

  1. @override
Future<TencentCloudChatPushResult> enableBackupChannels()
override

Implementation

@override
Future<TencentCloudChatPushResult> enableBackupChannels() async {
  try {
    await _methodChannel.invokeMethod("enableBackupChannels");
    return TencentCloudChatPushResult(code: 0);
  } on PlatformException catch (e) {
    return TencentCloudChatPushResult(
      code: int.tryParse(e.code) ?? -1,
      errorMessage: e.message,
    );
  }
}