DefaultAuthorizationStatusHandler
class DefaultAuthorizationStatusHandler(eventChannel: SendChannel<PermissionManager.Event>, logTag: String, logger: Logger) : AuthorizationStatusHandler
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
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