RawPermission

data class RawPermission(val identifier: String, val androidPermissions: List<String>, val iosUsageKey: String? = null) : GrantPermission

A custom permission defined by raw platform strings.

Use this to support permissions that are not yet part of the AppGrant enum, such as experimental OS features or proprietary enterprise permissions.

Cross-Platform Mapping

You are responsible for ensuring that the androidPermissions and iosUsageKey logically represent the same feature for the user.

Constructors

Link copied to clipboard
constructor(identifier: String, androidPermissions: List<String>, iosUsageKey: String? = null)

Properties

Link copied to clipboard

List of manifest permission strings (e.g., Manifest.permission.CAMERA).

Link copied to clipboard
open override val identifier: String

Human-readable identifier used for caching and logs.

Link copied to clipboard
val iosUsageKey: String? = null

The Info.plist key string (e.g., NSCameraUsageDescription). If null, this permission will be treated as always granted on iOS unless identifier was previously marked as requested in GrantStore.

Link copied to clipboard

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