JxrPlatformAdapter.SpatialCapabilities


class JxrPlatformAdapter.SpatialCapabilities


Spatial Capabilities for SceneCore Platform.

Summary

Constants

const Int

The activity can create 3D contents.

const Int

The activity can set its own environment.

const Int

The activity can spatially embed another activity.

const Int

The activity can enable or disable passthrough.

const Int

The activity can use spatial audio.

const Int

The activity can spatialize itself by e.g. adding a spatial panel.

Public constructors

SpatialCapabilities(capabilities: Int)

Public functions

Boolean
hasCapability(capability: Int)

Returns true if the given capability is enabled.

Public properties

Int

The set of capabilities enabled for the platform.

Constants

SPATIAL_CAPABILITY_3D_CONTENT

Added in 1.0.0-alpha02
const val SPATIAL_CAPABILITY_3D_CONTENT = 2: Int

The activity can create 3D contents.

SPATIAL_CAPABILITY_APP_ENVIRONMENT

Added in 1.0.0-alpha02
const val SPATIAL_CAPABILITY_APP_ENVIRONMENT = 8: Int

The activity can set its own environment.

SPATIAL_CAPABILITY_EMBED_ACTIVITY

Added in 1.0.0-alpha02
const val SPATIAL_CAPABILITY_EMBED_ACTIVITY = 32: Int

The activity can spatially embed another activity.

SPATIAL_CAPABILITY_PASSTHROUGH_CONTROL

Added in 1.0.0-alpha02
const val SPATIAL_CAPABILITY_PASSTHROUGH_CONTROL = 4: Int

The activity can enable or disable passthrough.

SPATIAL_CAPABILITY_SPATIAL_AUDIO

Added in 1.0.0-alpha02
const val SPATIAL_CAPABILITY_SPATIAL_AUDIO = 16: Int

The activity can use spatial audio.

SPATIAL_CAPABILITY_UI

Added in 1.0.0-alpha02
const val SPATIAL_CAPABILITY_UI = 1: Int

The activity can spatialize itself by e.g. adding a spatial panel.

Public constructors

SpatialCapabilities

Added in 1.0.0-alpha02
SpatialCapabilities(capabilities: Int)

Public functions

hasCapability

Added in 1.0.0-alpha02
fun hasCapability(capability: Int): Boolean

Returns true if the given capability is enabled.

Parameters
capability: Int

The capability to check.

Returns
Boolean

True if the capability is enabled, false otherwise.

Public properties

capabilities

Added in 1.0.0-alpha02
val capabilitiesInt

The set of capabilities enabled for the platform.