Interface

SpatialElement.OnAttachStateChangeListener

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public interface OnAttachStateChangeListener

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

Functions

onElementAttachedToSubspace

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

public fun onElementDetachedFromSubspace(spatialComposeScene: SpatialComposeScene)

Called when the SpatialElement is detached from a SpatialComposeScene.

Parameters

spatialComposeScene The SpatialComposeScene that the element was detached from.