Composable Function

SpatialDialog

SpatialDialog is a dialog that is elevated above the activity.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

SpatialDialog

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, 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.