PermissionRefreshScheduler
class PermissionRefreshScheduler(currentAuthorizationStatusProvider: CurrentAuthorizationStatusProvider, authorizationStatusHandler: AuthorizationStatusHandler, coroutineScope: CoroutineScope) : CoroutineScope
Convenience class for scheduling checks to changes in permission state.
Parameters
currentAuthorizationStatusProvider
The CurrentAuthorizationStatusProvider used for getting the ApplePermissionsHelper.AuthorizationStatus of the permission.
authorizationStatusHandler
AuthorizationStatusHandler that is notified when changes to a permission occurs.
coroutineScope
The CoroutineScope on which to run the checks.
Constructors
Link copied to clipboard
constructor(currentAuthorizationStatusProvider: CurrentAuthorizationStatusProvider, authorizationStatusHandler: AuthorizationStatusHandler, coroutineScope: CoroutineScope)
Functions
Link copied to clipboard
Starts monitoring for changes to the ApplePermissionsHelper.AuthorizationStatus
Link copied to clipboard
Stops monitoring for changes to the ApplePermissionsHelper.AuthorizationStatus.