isRejectingCallOnNoPermissions method

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

Returns true if call is rejected when no CALL_PHONE permissions are granted nor Phone Account (via isPhoneAccountEnabled) is registered. Defaults to false.

Only available on Android

Implementation

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