XrDeviceTestRule


class XrDeviceTestRule : ExternalResource


JUnit Rule containing properties that affect the results of XrDevice capability APIs.

Summary

Public constructors

Protected functions

open Unit
open Unit

Public properties

Boolean

This property can be used to control whether the Projected service is available or not.

DisplayBlendMode

The result of XrDevice.getPreferredDisplayBlendMode.

Int

The value to be returned by SpatialApiVersionHelper.spatialApiVersion.

Set<DepthEstimationMode>

The set of DepthEstimationMode instances supported by the XrDevice.

Set<EyeTrackingMode>

The set of EyeTrackingMode instances supported by the XrDevice.

Set<GeospatialMode>

The set of GeospatialMode instances supported by the XrDevice.

Set<HandTrackingMode>

The set of HandTrackingMode instances supported by the XrDevice.

Set<RenderingMode>

The set of RenderingMode instances supported by the XrDevice.

Inherited functions

From org.junit.rules.TestRule
open Statement
apply(base: Statement, description: Description)

Public constructors

XrDeviceTestRule

Added in 1.0.0-alpha15
XrDeviceTestRule()

Protected functions

after

protected open fun after(): Unit

before

Added in 1.0.0-alpha15
protected open fun before(): Unit

Public properties

isProjectedServiceAvailable

Added in 1.0.0-alpha15
var isProjectedServiceAvailableBoolean

This property can be used to control whether the Projected service is available or not. By default, the Projected service is available.

preferredDisplayBlendMode

Added in 1.0.0-alpha15
var preferredDisplayBlendModeDisplayBlendMode

The result of XrDevice.getPreferredDisplayBlendMode.

Tests can set this property to control the value returned by XrDevice.getPreferredDisplayBlendMode during the test execution.

spatialApiVersion

Added in 1.0.0-alpha15
var spatialApiVersionInt

The value to be returned by SpatialApiVersionHelper.spatialApiVersion.

Tests can set this property to control the value returned by SpatialApiVersionHelper.spatialApiVersion during the test execution. By default the value is set to the latest stable API level.

supportedDepthEstimationModes

Added in 1.0.0-alpha15
var supportedDepthEstimationModesSet<DepthEstimationMode>

The set of DepthEstimationMode instances supported by the XrDevice.

Tests can modify this set to control the value returned by XrDevice.isDepthEstimationModeSupported during the test execution.

supportedEyeTrackingModes

Added in 1.0.0-alpha15
var supportedEyeTrackingModesSet<EyeTrackingMode>

The set of EyeTrackingMode instances supported by the XrDevice.

Tests can modify this set to control the value returned by XrDevice.isEyeTrackingModeSupported during the test execution.

supportedGeospatialModes

Added in 1.0.0-alpha15
var supportedGeospatialModesSet<GeospatialMode>

The set of GeospatialMode instances supported by the XrDevice.

Tests can modify this set to control the value returned by XrDevice.isGeospatialModeSupported during the test execution.

supportedHandTrackingModes

Added in 1.0.0-alpha15
var supportedHandTrackingModesSet<HandTrackingMode>

The set of HandTrackingMode instances supported by the XrDevice.

Tests can modify this set to control the value returned by XrDevice.isHandTrackingModeSupported during the test execution.

supportedRenderingModes

Added in 1.0.0-alpha15
var supportedRenderingModesSet<RenderingMode>

The set of RenderingMode instances supported by the XrDevice.

Tests can modify this set to control the value returned by XrDevice.isRenderingModeSupported during the test execution.