The PermissionStatus class is an enumeration of constant values that specify the authorization status of a permission.

Variables

@:value(cast 0)@:impl@:enuminlineread onlyDENIED:PermissionStatus = 0

Specifies that the permission has been denied.

@:value(cast 1)@:impl@:enuminlineread onlyGRANTED:PermissionStatus = 1

Specifies that the permission has been granted.

@:value(cast 2)@:impl@:enuminlineread onlyONLY_WHEN_IN_USE:PermissionStatus = 2

Specifies that the permission has been granted only when the app is in use.

@:value(cast 3)@:impl@:enuminlineread onlyUNKNOWN:PermissionStatus = 3

Specifies that the permission hasn't been requested yet.

NOTE: On Android, permissionStatus will return UNKNOWN if permission was denied with "Never ask again" option checked.