Composable Function

SpatialDialog

SpatialDialog is a dialog that is elevated above the activity.

SpatialDialog

Source set: Android
@Composable
public fun SpatialDialog(
    onDismissRequest: () -> Unit,
    properties: SpatialDialogProperties = SpatialDialogProperties(),
    content: @Composable () -> 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 or embedded activities, a standard Compose Dialog is utilized to display the content.

Parameters

onDismissRequest a callback to be invoked when the dialog should be dismissed.
properties the dialog properties.
content the content of the dialog.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: