UserPermissions

Interface for managing user permissions in a testable way. Handles permission requests from paywalls and returns results to be sent back.

Functions

Link copied to clipboard
abstract fun hasPermission(permission: PermissionType): PermissionStatus

Check if a specific permission is granted

Link copied to clipboard
abstract suspend fun requestPermission(activity: Activity, permission: PermissionType): PermissionStatus

Request a specific permission from the user