rememberDialogState

Creates a DialogState that can be used to control the visibility of a Dialog.

Parameters

initiallyVisible

Whether the dialog should be initially visible.


fun rememberDialogState(visible: Boolean = false, ____deprecated_constructor: Unit = Unit): DialogState

Deprecated

This function is going away soon. Use the updated function with renamed parameters

Replace with

rememberDialogState(initiallyVisible = visible)

Creates a DialogState that can be used to control the visibility of a Dialog.

Parameters

initiallyVisible

Whether the dialog should be initially visible.