setAndroidCustomConfigFile method

  1. @override
Future<TencentCloudChatPushResult> setAndroidCustomConfigFile({
  1. required String configs,
})
override

Implementation

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