FakeXrExtensions.FakeSpatialState


class FakeXrExtensions.FakeSpatialState


A fake implementation of the XR extensions SpatialState.

Summary

Public constructors

Public functions

EnvironmentVisibilityState

Gets the environment visibility of the activity.

PassthroughVisibilityState

Gets the passthrough visibility of the activity.

SpatialCapabilities

Gets spatial capabilities of the activity.

Unit
Unit
setEnvironmentVisibility(
    environmentVisibilityState: EnvironmentVisibilityState
)
Unit
setPassthroughVisibility(
    passthroughVisibilityState: PassthroughVisibilityState
)
Unit

Public properties

Bounds!

Public constructors

FakeSpatialState

Added in 1.0.0-alpha01
FakeSpatialState()

Public functions

getEnvironmentVisibility

Added in 1.0.0-alpha01
fun getEnvironmentVisibility(): EnvironmentVisibilityState

Gets the environment visibility of the activity.

getPassthroughVisibility

Added in 1.0.0-alpha01
fun getPassthroughVisibility(): PassthroughVisibilityState

Gets the passthrough visibility of the activity.

getSpatialCapabilities

Added in 1.0.0-alpha01
fun getSpatialCapabilities(): SpatialCapabilities

Gets spatial capabilities of the activity. Unlike other capabilities in Android, this may dynamically change based on the current mode the activity is in, whether the activity is the top one in its task, whether the task is the top visible one on the desktop, and so on.

setAllSpatialCapabilities

Added in 1.0.0-alpha01
fun setAllSpatialCapabilities(allowAll: Boolean): Unit

setEnvironmentVisibility

Added in 1.0.0-alpha01
fun setEnvironmentVisibility(
    environmentVisibilityState: EnvironmentVisibilityState
): Unit

setPassthroughVisibility

Added in 1.0.0-alpha01
fun setPassthroughVisibility(
    passthroughVisibilityState: PassthroughVisibilityState
): Unit

setSpatialCapabilities

Added in 1.0.0-alpha01
fun setSpatialCapabilities(capabilities: SpatialCapabilities): Unit

Public properties

bounds

Added in 1.0.0-alpha01
var boundsBounds!