DefaultAuthorizationStatusHandler

Default implementation of AuthorizationStatusHandler. Maps AuthorizationStatus to a PermissionManager.Event and sends this to a channel

Parameters

eventChannel

the SendChannel that should emit the PermissionManager.Event

logTag

the tag wto use for logging

logger

the Logger to use for logging

Constructors

Link copied to clipboard
constructor(eventChannel: SendChannel<PermissionManager.Event>, logTag: String, logger: Logger)

Functions

Link copied to clipboard
fun AuthorizationStatusHandler.requestAuthorizationStatus(timerHelper: PermissionRefreshScheduler? = null, coroutineScope: CoroutineScope, request: suspend () -> ApplePermissionsHelper.AuthorizationStatus)

Pauses a PermissionRefreshScheduler while requesting an AuthorizationStatus and calls AuthorizationStatusHandler.status once the request has been completed.

Link copied to clipboard