TestJxrPlatformAdapter

class TestJxrPlatformAdapter


A test implementation of JxrPlatformAdapter that allows for setting custom values for the ActivitySpace, HeadActivityPose, and CameraViewActivityPose.

fakeRuntimeBase is the base JxrPlatformAdapter to use for the JxrPlatformAdapter implementation.

Summary

Public companion functions

TestJxrPlatformAdapter
create(fakeRuntimeBase: JxrPlatformAdapter)

Public functions

open CameraViewActivityPose?

Returns the CameraViewActivityPose for the specified camera type or null if it is not ready/available.

Public properties

open ActivitySpace

The ActivitySpace to use for the JxrPlatformAdapter implementation.

open Entity

Returns the entity that represents the ActivitySpace root.

open TestHeadActivityPose?

The TestHeadActivityPose to use for the JxrPlatformAdapter implementation.

TestCameraViewActivityPose?

The TestCameraViewActivityPose to use for the JxrPlatformAdapter implementation for the left camera.

TestCameraViewActivityPose?

The TestCameraViewActivityPose to use for the JxrPlatformAdapter implementation for the right camera.

TestCameraViewActivityPose?

The TestCameraViewActivityPose to use for the JxrPlatformAdapter implementation for the unknown camera.

Public companion functions

create

Added in 1.0.0-alpha04
fun create(fakeRuntimeBase: JxrPlatformAdapter): TestJxrPlatformAdapter

Public functions

getCameraViewActivityPose

Added in 1.0.0-alpha04
open fun getCameraViewActivityPose(cameraType: Int): CameraViewActivityPose?

Returns the CameraViewActivityPose for the specified camera type or null if it is not ready/available.

Public properties

activitySpace

Added in 1.0.0-alpha04
open var activitySpaceActivitySpace

The ActivitySpace to use for the JxrPlatformAdapter implementation.

activitySpaceRootImpl

Added in 1.0.0-alpha04
open val activitySpaceRootImplEntity

Returns the entity that represents the ActivitySpace root.

SDK's factory methods are expected to use this entity as the default parent for all content entities when no parent is specified.

headActivityPose

Added in 1.0.0-alpha04
open var headActivityPoseTestHeadActivityPose?

The TestHeadActivityPose to use for the JxrPlatformAdapter implementation.

leftCameraViewPose

Added in 1.0.0-alpha04
var leftCameraViewPoseTestCameraViewActivityPose?

The TestCameraViewActivityPose to use for the JxrPlatformAdapter implementation for the left camera.

rightCameraViewPose

Added in 1.0.0-alpha04
var rightCameraViewPoseTestCameraViewActivityPose?

The TestCameraViewActivityPose to use for the JxrPlatformAdapter implementation for the right camera.

unknownCameraViewPose

Added in 1.0.0-alpha04
var unknownCameraViewPoseTestCameraViewActivityPose?

The TestCameraViewActivityPose to use for the JxrPlatformAdapter implementation for the unknown camera.