setAndroidLogLevel method

  1. @override
Future<Map> setAndroidLogLevel(
  1. int level
)
override

设置 Android log 的级别

Implementation

@override
Future<Map<dynamic, dynamic>> setAndroidLogLevel(int level) async {
  if (!Platform.isAndroid) {
    return {
      'code': kAliyunPushOnlyAndroid,
      'errorMsg': 'Only support Android',
    };
  }

  Map<dynamic, dynamic> result =
      await methodChannel.invokeMethod('setLogLevel', {'level': level});
  return result;
}