SimpleGrantManager
Deprecated
FOR TESTING AND DEMO ONLY. DO NOT USE IN PRODUCTION. Use GrantFactory.create() instead.
Simple mock implementation for demo purposes.
⚠️ FOR TESTING AND DEMO ONLY. DO NOT USE IN PRODUCTION. Use GrantFactory.create() for production usage.
This simulates realistic grant request behavior:
First request: User denies → DENIED (shows rationale)
Second request: User denies again → DENIED_ALWAYS (must go to settings)
Third request: User grants → GRANTED
This allows testing all three dialog flows:
Rationale dialog (after first denial)
Settings dialog (after second denial)
Success callback (after grant)
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.