DefaultGrantManager

Default production implementation of GrantManager.

Delegates all platform-specific permission operations to PlatformGrantDelegate, which provides native iOS (CoreLocation, AVFoundation, etc.) and Android (Activity Result API, ContextCompat.checkSelfPermission, etc.) implementations.

Architecture (expect/actual pattern):

Constructors

Link copied to clipboard
constructor(platformDelegate: PlatformGrantDelegate)

Functions

Link copied to clipboard
open suspend override fun checkStatus(grant: GrantPermission): GrantStatus

Checks the current status of a permission WITHOUT showing any UI.

Link copied to clipboard
open override fun openSettings()

Opens the app's settings page where user can manually enable grants.

Link copied to clipboard
open suspend override fun request(grant: GrantPermission): GrantStatus

Requests a permission from the user.

open suspend override fun request(grants: List<GrantPermission>): Map<GrantPermission, GrantStatus>

Request multiple grants from the system at once.

Link copied to clipboard
open override fun setLauncher(launcher: GrantLauncher)

Set the launcher for permission requests. This must be called from the host activity or fragment.