GrantManager
interface GrantManager
Core interface for grant management.
This is the ONLY interface that ViewModels and feature modules should depend on. Implementation details are hidden behind this abstraction.
Design Pattern: Wrapper/Adapter Pattern Benefits:
Easy to swap underlying implementation
No coupling between business logic and platform-specific code
Simplified testing (mock this interface)
See also
DefaultGrantManager
for the default implementation
for ViewModel usage patterns
Inheritors
Functions
Link copied to clipboard
Checks the current status of a permission WITHOUT showing any UI.
Link copied to clipboard
Opens the app's settings page where user can manually enable grants.
Link copied to clipboard
Requests a permission from the user.
Request multiple grants from the system at once.
Link copied to clipboard
Set the launcher for permission requests. This must be called from the host activity or fragment.