DialogStateWithData
class DialogStateWithData<T>(visible: State<Boolean>, state: MutableState<T?>, interactionSource: MutableState<DialogInteractionSource>) : DialogState
a dialog state holding the current state and the some additional state DialogInteractionSource of the dialog
Parameters
visible
the visibility state of the dialog - must be derived from the state!
state
the state of the dialog - if not null, the dialog is visible, otherwise not
interactionSource
the DialogInteractionSource holding other states for this dialog
Constructors
Link copied to clipboard
constructor(visible: State<Boolean>, state: MutableState<T?>, interactionSource: MutableState<DialogInteractionSource>)
Properties
Functions
Link copied to clipboard
this will dismiss this dialog (if the interactionSource (DialogInteractionSource.dismissAllowed) does allow this)
Link copied to clipboard
this will make the dialog dismissable or not
Link copied to clipboard
this will enable or disable a button
Link copied to clipboard
this will determine if a button currently can be pressed (depends on the interactionSource (DialogInteractionSource.buttonPositiveEnabled or DialogInteractionSource.buttonNegativeEnabled))
Link copied to clipboard
this will return the currently holded data