BaseDialogState

abstract class BaseDialogState

a dialog state holding the current showing state and some additional state DialogInteractionSource of the dialog

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

the DialogInteractionSource holding other states for this dialog

Link copied to clipboard
abstract val visible: Boolean

the showing state of the dialog

Functions

Link copied to clipboard

this will dismiss this dialog (if the interactionSource (DialogInteractionSource.dismissAllowed) does allow this)

Link copied to clipboard
fun dismissable(enabled: Boolean)

make dialog dismissable or not

Link copied to clipboard
fun enableButton(button: DialogButtonType, enabled: Boolean)

enable or disable a button

Link copied to clipboard

this will determine if a button currently can be pressed

Link copied to clipboard
abstract fun onDismiss()