> Documentation index: https://developer.android.com/reference/llms.txt

# A2uiSurfaceModelFactory

Artifact: [androidx.a2ui.compose:compose-ui-tooling-preview](https://developer.android.com/jetpack/androidx/releases/a2ui-compose.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/compose/ui/tooling/preview/A2uiPreview.kt+class:androidx.a2ui.compose.ui.tooling.preview.A2uiSurfaceModelFactory) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui-compose.md.txt#1.0.0-alpha03)


```
fun interface A2uiSurfaceModelFactory
```

<br />

*** ** * ** ***

Creates and remembers an `A2uiSurfaceModel` within a `@Preview` composable.

Provided by `A2uiPreviewParameterProvider` so that catalog and surface initialization occur inside composition.

## Summary

| ### Public functions |
|---|---|
| `A2uiSurfaceModel` | `@Composable create()` Creates and remembers the `A2uiSurfaceModel` in the current composition. |

## Public functions

### create

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/a2ui-compose.md.txt#1.0.0-alpha03)

```
@Composable
fun create(): A2uiSurfaceModel
```

Creates and remembers the `A2uiSurfaceModel` in the current composition.