Permissions

class Permissions(builder: PermissionsBuilder, coroutineContext: CoroutineContext = defaultPermissionDispatcher)

Holder class for all the PermissionStateFlowRepo associated with Permission

Parameters

builder

The PermissionsBuilder to build the PermissionManager associated with each Permission

coroutineContext

The CoroutineContext to run permission checks from

Constructors

Link copied to clipboard
constructor(builder: PermissionsBuilder, coroutineContext: CoroutineContext = defaultPermissionDispatcher)

Functions

Link copied to clipboard
fun clean()

Removes all PermissionStateFlowRepo generated previously.

Link copied to clipboard
operator fun <P : Permission> get(permission: P): PermissionStateFlowRepo<P>
Link copied to clipboard
suspend fun <P : Permission> request(permission: P): Boolean

Requests a Permission