Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

InteractionPolicy

Defines the interaction policy for a spatial object.

Source set: Android
public interface InteractionPolicy

Defines the interaction policy for a spatial object. This policy enables reacting to a user's spatial inputs.

Properties

isEnabled

Source set: Android
public val isEnabled: Boolean

Whether an interaction policy is enabled for this object. If false, spatial interaction input events will not be returned.

Functions

onInputEvent

public fun onInputEvent(event: SpatialInputEvent)

Raw event executed with every input update.

Last updated: