GrantUiState
data class GrantUiState(val isVisible: Boolean = false, val showRationale: Boolean = false, val showSettingsGuide: Boolean = false, val rationaleMessage: String? = null, val settingsMessage: String? = null)
UI State for grant dialogs.
This state drives the UI layer to show appropriate dialogs:
Rationale dialog when grant was denied softly
Settings guide dialog when grant is permanently denied
Constructors
Properties
Link copied to clipboard
Optional custom message for rationale
Link copied to clipboard
Optional custom message for settings guide
Link copied to clipboard
Show rationale dialog (when user denied once, explain why we need it)
Link copied to clipboard
Show settings guide (when permanently denied, must go to Settings)