hasManageOwnCallsPermission method

  1. @override
Future<bool> hasManageOwnCallsPermission()
override

Checks if device has permission to manage system calls

Android only

Implementation

@override
Future<bool> hasManageOwnCallsPermission() {
  if (defaultTargetPlatform != TargetPlatform.android) {
    return Future.value(true);
  }
  return _channel.invokeMethod<bool?>('hasManageOwnCallsPermission', {}).then<bool>((bool? value) => value ?? false);
}