FakeSpatialModeChangeListener


class FakeSpatialModeChangeListener


Summary

Public constructors

Public functions

open Unit
onSpatialModeChanged(recommendedPose: Pose, recommendedScale: Vector3)

Called when the activity encounters spatial mode change.

Unit

Public constructors

FakeSpatialModeChangeListener

Added in 1.0.0-alpha05
FakeSpatialModeChangeListener()

Public functions

onSpatialModeChanged

Added in 1.0.0-alpha05
open fun onSpatialModeChanged(recommendedPose: Pose, recommendedScale: Vector3): Unit

Called when the activity encounters spatial mode change.

Parameters
recommendedPose: Pose

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

recommendedScale: Vector3

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
fun reset(): Unit

Public properties

lastRecommendedPose

Added in 1.0.0-alpha05
var lastRecommendedPosePose?

lastRecommendedScale

Added in 1.0.0-alpha05
var lastRecommendedScaleVector3?

updateCount

Added in 1.0.0-alpha05
var updateCountInt