FakeXrExtensions.FakeSpatialState


class FakeXrExtensions.FakeSpatialState


A fake implementation of the XR extensions SpatialState.

Summary

Public constructors

Public functions

Bounds

Gets spatial bounds of the activity.

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
setBounds(bounds: Bounds)
Unit
setEnvironmentVisibility(
    environmentVisibilityState: EnvironmentVisibilityState
)
Unit
setPassthroughVisibility(
    passthroughVisibilityState: PassthroughVisibilityState
)
Unit

Public constructors

FakeSpatialState

Added in 1.0.0-alpha02
FakeSpatialState()

Public functions

getBounds

Added in 1.0.0-alpha02
fun getBounds(): Bounds

Gets spatial bounds of the activity. When in full space mode, (infinity, infinity, infinity) is returned.

See also
Bounds

getEnvironmentVisibility

Added in 1.0.0-alpha02
fun getEnvironmentVisibility(): EnvironmentVisibilityState

Gets the environment visibility of the activity.

getPassthroughVisibility

Added in 1.0.0-alpha02
fun getPassthroughVisibility(): PassthroughVisibilityState

Gets the passthrough visibility of the activity.

getSpatialCapabilities

Added in 1.0.0-alpha02
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-alpha02
fun setAllSpatialCapabilities(allowAll: Boolean): Unit

setBounds

Added in 1.0.0-alpha02
fun setBounds(bounds: Bounds): Unit

setEnvironmentVisibility

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

setPassthroughVisibility

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

setSpatialCapabilities

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