PermissionStatus

The current authorization state of a Permission.

Returned by AFPermissions.getPermissionStatus(...). A permission typically starts NOT_DETERMINED and moves to GRANTED or DENIED after the member responds to a prompt; the remaining states are partial grants surfaced mainly on iOS.

Treat anything other than GRANTED as "feature unavailable" and degrade gracefully. To recover from DENIED / RESTRICTED you generally must send the member to system Settings (AFPermissions exposes helpers for this) — re-requesting will not show a prompt again.

Entries

Link copied to clipboard

Fully authorized. The gated feature may proceed.

Link copied to clipboard

Explicitly denied by the member (or unavailable). Re-requesting won't re-prompt.

Link copied to clipboard

Partial authorization where the scope of the grant is reduced — e.g. iOS "Limited" Photos, or location granted for foreground use only ("While Using") when the request asked for background ("Always"). The feature works with reduced fidelity; consider prompting for the fuller grant.

Link copied to clipboard

Location was granted, but only at approximate (reduced) accuracy — the member can be located to ~1–5 km, not precisely. This is the iOS 14+ "Precise Location" toggle being off, and the Android 12+ "Approximate" / coarse-only grant.

Link copied to clipboard

iOS only — provisionally granted (e.g. quiet notifications) without an explicit prompt.

Link copied to clipboard

iOS only — blocked by a system restriction (parental controls / MDM); the member cannot grant it.

Link copied to clipboard

Never requested yet — the member has not been prompted. Safe to request now.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.