public final class SpatialUser


SpatialUser represents the user in a spatialized Activity.

Summary

Public constructors

SpatialUser(
    @NonNull LifecycleManager lifecycleManager,
    @NonNull JxrPlatformAdapter runtime
)

Public methods

final @NonNull Map<@NonNull CameraView.CameraType, @NonNull CameraView>

A Map of the CameraView objects attached to the SpatialUser.

final Head

Returns the Head for the SpatialUser, or null if it is not yet available.

Public constructors

SpatialUser

Added in 1.0.0-alpha05
public SpatialUser(
    @NonNull LifecycleManager lifecycleManager,
    @NonNull JxrPlatformAdapter runtime
)

Public methods

getCameraViews

Added in 1.0.0-alpha05
public final @NonNull Map<@NonNull CameraView.CameraType, @NonNull CameraViewgetCameraViews()

A Map of the CameraView objects attached to the SpatialUser. The length and elements of the list are dependent on the device type. The list will be empty if the cameras are not yet available.

Throws
kotlin.IllegalStateException

if session.config.headTracking is set to HeadTrackingMode.DISABLED.

getHead

Added in 1.0.0-alpha05
public final Head getHead()

Returns the Head for the SpatialUser, or null if it is not yet available.

Throws
kotlin.IllegalStateException

if session.config.headTracking is set to HeadTrackingMode.DISABLED.