SpatialModeChangeEvent


public final class SpatialModeChangeEvent


An event that is dispatched when the spatial mode for the scene has changed.

Summary

Public constructors

SpatialModeChangeEvent(
    @NonNull Pose recommendedPose,
    float recommendedScale
)

Public methods

boolean
equals(Object other)
final @NonNull Pose

The recommended pose for the key entity.

final float

The recommended scale for the key entity.

int
@NonNull String

Public constructors

SpatialModeChangeEvent

Added in 1.0.0-alpha07
public SpatialModeChangeEvent(
    @NonNull Pose recommendedPose,
    float recommendedScale
)

Public methods

equals

public boolean equals(Object other)

getRecommendedPose

Added in 1.0.0-alpha07
public final @NonNull Pose getRecommendedPose()

The recommended pose for the key entity. The pose is relative to ActivitySpace origin, not relative to the key entity's parent.

getRecommendedScale

Added in 1.0.0-alpha07
public final float getRecommendedScale()

The recommended scale for the key entity. The scale value is the accumulated scale for this entity i.e. accumulated scale in ActivitySpace, not relative to the key entity's parent.

hashCode

public int hashCode()

toString

public @NonNull String toString()