FakeSpatialModeChangeListener


public final class FakeSpatialModeChangeListener


Summary

Public constructors

Public methods

final Pose
final Vector3
final int
void
onSpatialModeChanged(
    @NonNull Pose recommendedPose,
    @NonNull Vector3 recommendedScale
)

Called when the activity encounters spatial mode change.

final void
final void
setLastRecommendedPose(Pose lastRecommendedPose)
final void
setLastRecommendedScale(Vector3 lastRecommendedScale)
final void
setUpdateCount(int updateCount)

Public constructors

FakeSpatialModeChangeListener

Added in 1.0.0-alpha05
public FakeSpatialModeChangeListener()

Public methods

getLastRecommendedPose

Added in 1.0.0-alpha05
public final Pose getLastRecommendedPose()

getLastRecommendedScale

Added in 1.0.0-alpha05
public final Vector3 getLastRecommendedScale()

getUpdateCount

Added in 1.0.0-alpha05
public final int getUpdateCount()

onSpatialModeChanged

Added in 1.0.0-alpha05
public void onSpatialModeChanged(
    @NonNull Pose recommendedPose,
    @NonNull Vector3 recommendedScale
)

Called when the activity encounters spatial mode change.

Parameters
@NonNull Pose recommendedPose

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

@NonNull Vector3 recommendedScale

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

reset

Added in 1.0.0-alpha05
public final void reset()

setLastRecommendedPose

Added in 1.0.0-alpha05
public final void setLastRecommendedPose(Pose lastRecommendedPose)

setLastRecommendedScale

Added in 1.0.0-alpha05
public final void setLastRecommendedScale(Vector3 lastRecommendedScale)

setUpdateCount

Added in 1.0.0-alpha05
public final void setUpdateCount(int updateCount)