LocationTemporaryFullAccuracyHandler

Handles requesting Temporary Full Accuracy Location permission on iOS 14+.

Maps to the NSLocationTemporaryFullAccuracyUsageDescriptionKey in Info.plist. Since this requires a specific purposeKey matching your Info.plist dictionary, it cannot be an AppGrant enum. Instead, use a RawPermission and register this handler:

val precisionLoc = RawPermission("DeliveryPurpose", iosUsageKey = "NSLocationTemporaryFullAccuracyUsageDescriptionKey")
IosPermissionHandlerRegistry.register("DeliveryPurpose", LocationTemporaryFullAccuracyHandler("DeliveryPurpose"))

Constructors

Link copied to clipboard
constructor(purposeKey: String)

Functions

Link copied to clipboard
open override fun checkStatus(): <Error class: unknown class>

Returns the current authorization status for this permission. Must be called on the main thread.

Link copied to clipboard
open suspend override fun request(): <Error class: unknown class>

Requests authorization from the user. Suspends until the system dialog is dismissed.