SpatialExternalSurfaceScope

interface SpatialExternalSurfaceScope


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

Summary

Public functions

Unit
onSurfaceCreated(onSurfaceCreated: (Surface) -> Unit)

Invoked only one time when the Surface is created.

Unit
onSurfaceDestroyed(onSurfaceDestroyed: (Surface) -> Unit)

Invoked when the Composable and its associated Surface are destroyed.

Public functions

onSurfaceCreated

Added in 1.0.0-alpha04
fun onSurfaceCreated(onSurfaceCreated: (Surface) -> Unit): Unit

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

onSurfaceDestroyed

Added in 1.0.0-alpha04
fun onSurfaceDestroyed(onSurfaceDestroyed: (Surface) -> Unit): Unit

Invoked when the Composable and its associated Surface are destroyed.