Dialog
Source set: Android
@Composable
public fun Dialog(
visible: Boolean,
onDismissRequest: () -> Unit,
modifier: Modifier = Modifier,
properties: DialogProperties = DialogProperties(),
content: @Composable () -> Unit,
)
Parameters
| visible | A boolean value that determines whether the dialog should be displayed. |
| onDismissRequest | A lambda function to be called when the dialog is dismissed by swiping right. Implementation of this lambda must remove the dialog from the composition hierarchy e.g. by setting visible to false. |
| modifier | Modifier to be applied to the dialog content. |
| properties | An optional DialogProperties object for configuring the dialog's behavior. When the system status bar is enabled on the device, DialogProperties.usePlatformDefaultWidth and DialogProperties.decorFitsSystemWindows are overridden to false to ensure edge-to-edge full width display. |
| content | A composable function that defines the content of the dialog. |