Skip to content

PermissionStatus

PermissionStatus #

Bases: Enum

Defines the state of a Permission.

DENIED = 'denied' #

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

GRANTED = 'granted' #

The user granted access to the requested feature.

LIMITED = 'limited' #

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_DENIED = 'permanentlyDenied' #

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.

PROVISIONAL = 'provisional' #

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

Note

Only supported on iOS (iOS 12+).

RESTRICTED = 'restricted' #

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.