Interface

SpatialElement.OnAttachStateChangeListener

Interface definition for callbacks that are invoked when this element's attachment state changes.

Source set: Android
public interface OnAttachStateChangeListener

Interface definition for callbacks that are invoked when this element's attachment state changes.

Functions

onElementAttachedToSubspace

Source set: Android
public fun onElementAttachedToSubspace(spatialComposeScene: SpatialComposeScene)

Called when the SpatialElement is attached to a SpatialComposeScene.

Parameters

spatialComposeScene The SpatialComposeScene that the element was attached to.

onElementDetachedFromSubspace

Source set: Android
public fun onElementDetachedFromSubspace(spatialComposeScene: SpatialComposeScene)

Called when the SpatialElement is detached from a SpatialComposeScene.

Parameters

spatialComposeScene The SpatialComposeScene that the element was detached from.
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: