isNotificationPolicyAccessGranted method

Future<bool> isNotificationPolicyAccessGranted()

Checks if the Notification Policy Access is granted.

Returns false if the platform is iOS, otherwise returns the access status from the platform instance.

Implementation

Future<bool> isNotificationPolicyAccessGranted() async {
  if (Platform.isIOS) {
    return false;
  }
  return DoNotDisturbPlatform.instance.isNotificationPolicyAccessGranted();
}