Interface

SpatialExternalSurfaceScope

SpatialExternalSurfaceScope is a scoped environment that provides the Surface associated with a SpatialExternalSurface

Source set: Android
public sealed interface SpatialExternalSurfaceScope

SpatialExternalSurfaceScope is a scoped environment that provides the Surface associated with a SpatialExternalSurface

Functions

onSurfaceCreated

Source set: Android
public fun onSurfaceCreated(onSurfaceCreated: (Surface) -> Unit)

Invoked only one time when the Surface is created. This will execute before any layout or modifiers are computed.

onSurfaceDestroyed

Source set: Android
public fun onSurfaceDestroyed(onSurfaceDestroyed: (Surface) -> Unit)

Invoked when the Composable and its associated Surface are destroyed.

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: