PermissionManager

Manager for handling and monitoring a given Permission

Parameters

P

the type of Permission to manage

Inheritors

Types

Link copied to clipboard
sealed class Event

Events that can be detected by a PermissionManager

Properties

Link copied to clipboard
abstract val events: Flow<PermissionManager.Event>

A Flow of Event detected by the manager

Link copied to clipboard
abstract val permission: P

The P managed by this manager

Functions

Link copied to clipboard
abstract fun requestPermission()

Starts to request the permission

Link copied to clipboard
abstract fun startMonitoring(interval: Duration)

Starts monitoring for changes to the permission.

Link copied to clipboard
abstract fun stopMonitoring()

Stops monitoring for changes to the permission.