# SpatialBasicAlertDialog

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/xr/compose/material3/ExperimentalMaterial3XrApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/xr/compose/material3/SpatialBasicAlertDialog.composable#SpatialBasicAlertDialog(kotlin.Function0,androidx.xr.compose.spatial.SpatialDialogProperties,kotlin.Function0)( onDismissRequest: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html, properties: https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/SpatialDialogProperties, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` [Basic alert dialog dialog]("https://m3.material.io/components/dialogs/overview"). |

## Functions

### SpatialBasicAlertDialog

Artifact: [androidx.xr.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/xr-compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/xr/compose/material3/BasicAlertDialog.kt+function:SpatialBasicAlertDialog) Added in [1.0.0-alpha17](https://developer.android.com/jetpack/androidx/releases/xr-compose-material3#1.0.0-alpha17)

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

[Basic alert dialog dialog]("https://m3.material.io/components/dialogs/overview").

XR-specific Alert dialog that shows a basic alert dialog in a `https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/SpatialDialog.composable#SpatialDialog(kotlin.Function0,androidx.xr.compose.spatial.SpatialDialogProperties,kotlin.Function0)`.

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: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | 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: https://developer.android.com/reference/kotlin/androidx/xr/compose/spatial/SpatialDialogProperties = SpatialDialogProperties()` | typically platform specific properties to further configure the dialog. |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | the content of the dialog |