GrantGroupUiState

data class GrantGroupUiState(val isVisible: Boolean = false, val currentGrant: GrantPermission? = null, val showRationale: Boolean = false, val showSettingsGuide: Boolean = false, val rationaleMessage: String? = null, val settingsMessage: String? = null, val grantedGrants: Set<GrantPermission> = emptySet(), val totalGrants: Int = 0)

The UI state produced by GrantGroupHandler.

Constructors

Link copied to clipboard
constructor(isVisible: Boolean = false, currentGrant: GrantPermission? = null, showRationale: Boolean = false, showSettingsGuide: Boolean = false, rationaleMessage: String? = null, settingsMessage: String? = null, grantedGrants: Set<GrantPermission> = emptySet(), totalGrants: Int = 0)

Properties

Link copied to clipboard

The specific permission that is currently being addressed (rationale/settings).

Link copied to clipboard

The set of permissions in the group that have been successfully granted.

Link copied to clipboard
val isVisible: Boolean = false

Whether a permission dialog should currently be visible.

Link copied to clipboard

Custom rationale text for currentGrant.

Link copied to clipboard
val settingsMessage: String? = null

Custom settings guide text for currentGrant.

Link copied to clipboard
val showRationale: Boolean = false

Whether to show a rationale dialog.

Link copied to clipboard

Whether to show a settings guide.

Link copied to clipboard
val totalGrants: Int = 0

The total number of permissions in the group.