class SpatialUser


The User object is used to retrieve information about the user. This includes the Head and The CameraViews.

Summary

Public constructors

Public functions

CameraView?

Returns a CameraView for the specified CameraType or null if it is not available.

List<CameraView>

Returns a list of CameraViews that the user is using.

Public properties

Head?

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

Public constructors

SpatialUser

Added in 1.0.0-alpha01
SpatialUser(runtime: JxrPlatformAdapter)
Parameters
runtime: JxrPlatformAdapter

The JxrPlatformAdapter for the Session.

Public functions

getCameraView

Added in 1.0.0-alpha01
fun getCameraView(cameraType: CameraView.CameraType): CameraView?

Returns a CameraView for the specified CameraType or null if it is not available.

getCameraViews

Added in 1.0.0-alpha01
fun getCameraViews(): List<CameraView>

Returns a list of CameraViews that the user is using. The length of the list is dependent on the device type. The list will be empty if the cameras are not yet available.

Public properties

head

Added in 1.0.0-alpha01
var headHead?

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