setIsPermissionGranted method

  1. @override
Future<void> setIsPermissionGranted({
  1. required bool granted,
  2. String? buildModel,
})
override

设置是否已授权获取设备信息/是否同意隐私协议

Implementation

@override
Future<void> setIsPermissionGranted({
  required bool granted,
  String? buildModel /* android.os.Build.MODEL */,
}) {
  return methodChannel.invokeMethod(
    'setIsPermissionGranted',
    <String, dynamic>{
      'granted': granted,
      if (buildModel?.isNotEmpty ?? false) 'build_model': buildModel,
    },
  );
}