SpatialDialog

Functions summary

Unit
@Composable
SpatialDialog(
    onDismissRequest: () -> Unit,
    properties: SpatialDialogProperties,
    content: @Composable () -> Unit
)

SpatialDialog is a dialog that is elevated above the activity.

Functions

SpatialDialog

@Composable
fun SpatialDialog(
    onDismissRequest: () -> Unit,
    properties: SpatialDialogProperties = SpatialDialogProperties(),
    content: @Composable () -> Unit
): Unit

SpatialDialog is a dialog that is elevated above the activity.

When spatial dialogs are displayed the dialog appears on top of the content at the base elevation level.

In non-spatialized environments, a standard Compose Dialog is utilized to display the content.

Parameters
onDismissRequest: () -> Unit

a callback to be invoked when the dialog should be dismissed.

properties: SpatialDialogProperties = SpatialDialogProperties()

the dialog properties.

content: @Composable () -> Unit

the content of the dialog.