AndroidGrantLauncher

Android implementation of GrantLauncher using ActivityResultLauncher.

Must be created via from before the Activity or Fragment reaches STARTED state (i.e., as a property or in onCreate).

The per-call onResult passed to launch is stored and invoked when the system permission dialog returns — the registered ActivityResultLauncher callback routes the result back to it.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun launch(permissions: List<String>, onResult: (Map<String, Boolean>) -> Unit)

Launch the permission request for the given permissions.