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):
commonMain: This class + PlatformGrantDelegate expect declarationandroidMain: PlatformGrantDelegate actual — full Android implementationiosMain: PlatformGrantDelegate actual — full iOS implementation
Functions
Checks the current status of a permission WITHOUT showing any UI.
Opens the app's settings page where user can manually enable grants.
Requests a permission from the user.
Request multiple grants from the system at once.
Set the launcher for permission requests. This must be called from the host activity or fragment.