AppGrant

A platform-agnostic abstraction for the most common system permissions.

Each entry maps to the appropriate native APIs on Android and iOS, handling version-specific complexities (e.g., Android 13/14 granular media access, Bluetooth API 31 changes).

Entries

Link copied to clipboard

Access to the camera hardware for photo or video capture.

Link copied to clipboard

Full access to the photo and video library.

Link copied to clipboard

Read-only access to image files in the photo library.

Link copied to clipboard

Read-only access to video files in the photo library.

Link copied to clipboard

Permission to save media into the photo library, without the ability to read it.

Link copied to clipboard

Access to shared external storage.

Link copied to clipboard

Standard location access when the app is in the foreground.

Link copied to clipboard

Background location access.

Link copied to clipboard

Permission to show push or local notifications.

Link copied to clipboard

Permission to schedule exact alarms at a specific time.

Link copied to clipboard

Bluetooth scanning and connecting together — central-mode operation where the app both discovers devices and talks to them.

Link copied to clipboard

Bluetooth scanning only — discovering nearby devices and beacons, without connecting to them.

Link copied to clipboard

Bluetooth connecting only — talking to already-paired devices such as a POS terminal, a car key, a scale or a wearable.

Link copied to clipboard

Bluetooth peripheral mode for advertising the device.

Link copied to clipboard

Access to the microphone for audio recording.

Link copied to clipboard

Full access (Read/Write) to the device's contacts.

Link copied to clipboard

Read-only access to the device's contacts.

Link copied to clipboard

Access to motion sensors and activity recognition.

Link copied to clipboard

Full access (Read/Write) to calendar events.

Link copied to clipboard

Read-only access to calendar events.

Link copied to clipboard

Permission to scan for nearby Wi-Fi devices.

Link copied to clipboard

Permission to communicate with devices on the local network (LAN) — smart-home devices, casting receivers, printers.

Link copied to clipboard

Permission to track the user across apps and websites owned by other companies — advertising attribution, cross-app analytics, ad measurement.

Properties

Link copied to clipboard
open override val identifier: String

Unique identifier for this permission.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether this permission needs a specific transition from PARTIAL to background access.

Functions

Link copied to clipboard
fun valueOf(value: String): AppGrant

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.