Skip to main content

PermissionStatus

Defines the state of a Permission.

Inherits: enum.Enum

Properties

  • DENIED - The user denied access to the requested feature, permission needs to be asked first.
  • GRANTED - The user granted access to the requested feature.
  • LIMITED - The user has authorized this application for limited access.
  • PERMANENTLY_DENIED - Permission to the requested feature is permanently denied, the permission dialog will not be shown when requesting this permission.
  • PROVISIONAL - The application is provisionally authorized to post non-interruptive user notifications.
  • RESTRICTED - The OS denied access to the requested feature.

Properties

DENIEDclass-attributeinstance-attribute

The user denied access to the requested feature, permission needs to be asked first.

GRANTEDclass-attributeinstance-attribute

The user granted access to the requested feature.

LIMITEDclass-attributeinstance-attribute

The user has authorized this application for limited access. So far this is only relevant for the Photo Library picker.

Note

Only supported on iOS (iOS14+) and Android (Android 14+).

PERMANENTLY_DENIEDclass-attributeinstance-attribute

Permission to the requested feature is permanently denied, the permission dialog will not be shown when requesting this permission. The user may still change the permission status in the settings.

Note
  • On Android:

    • Android 11+ (API 30+): whether the user denied the permission for a second time.
    • Below Android 11 (API 30): whether the user denied access to the requested feature and selected to never again show a request.
  • On iOS: If the user has denied access to the requested feature.

PROVISIONALclass-attributeinstance-attribute

The application is provisionally authorized to post non-interruptive user notifications.

Note

Only supported on iOS (iOS 12+).

RESTRICTEDclass-attributeinstance-attribute

The OS denied access to the requested feature. The user cannot change this app's status, possibly due to active restrictions such as parental controls being in place.

Note

Only supported on iOS.