GrantLauncher

interface GrantLauncher

Interface for platform-specific permission launchers.

Implementations of this interface should encapsulate the platform-specific mechanism for requesting permissions (e.g., ActivityResultLauncher on Android, PHPhotoLibrary.requestAuthorization on iOS).

Inheritors

Functions

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

Launch the permission request for the given permissions.