Interface

SpatialExternalSurfaceScope

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

Source set: Android
public interface SpatialExternalSurfaceScope

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

Functions

onSurfaceCreated

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

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

Invoked when the Composable and its associated Surface are destroyed.

Last updated: