BasicAlertDialog

Functions summary

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

Basic alert dialog dialog.

Functions

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

Basic alert dialog dialog.

XR-specific Alert dialog that shows a basic alert dialog in a SpatialDialog.

Dialogs provide important prompts in a user flow. They can require an action, communicate information, or help users accomplish a task.

This basic alert dialog expects an arbitrary content that is defined by the caller. Note that your content will need to define its own styling.

Parameters
onDismissRequest: () -> Unit

called when the user tries to dismiss the Dialog by clicking outside or pressing the back button. This is not called when the dismiss button is clicked.

properties: SpatialDialogProperties = SpatialDialogProperties()

typically platform specific properties to further configure the dialog.

content: @Composable () -> Unit

the content of the dialog