FakeXrExtensions.FakeSpatialState


public class FakeXrExtensions.FakeSpatialState


A fake implementation of the XR extensions SpatialState.

Summary

Public fields

Bounds

Public constructors

Public methods

@NonNull Bounds

Gets spatial bounds of the activity.

@NonNull EnvironmentVisibilityState

Gets the environment visibility of the activity.

@NonNull PassthroughVisibilityState

Gets the passthrough visibility of the activity.

@NonNull SpatialCapabilities

Gets spatial capabilities of the activity.

void
setAllSpatialCapabilities(boolean allowAll)
void
void
setEnvironmentVisibility(
    @NonNull EnvironmentVisibilityState environmentVisibilityState
)
void
setPassthroughVisibility(
    @NonNull PassthroughVisibilityState passthroughVisibilityState
)
void

Public fields

bounds

Added in 1.0.0-alpha01
public Bounds bounds

Public constructors

FakeSpatialState

Added in 1.0.0-alpha01
public FakeSpatialState()

Public methods

getBounds

Added in 1.0.0-alpha01
public @NonNull Bounds getBounds()

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-alpha01
public @NonNull EnvironmentVisibilityState getEnvironmentVisibility()

Gets the environment visibility of the activity.

getPassthroughVisibility

Added in 1.0.0-alpha01
public @NonNull PassthroughVisibilityState getPassthroughVisibility()

Gets the passthrough visibility of the activity.

getSpatialCapabilities

Added in 1.0.0-alpha01
public @NonNull SpatialCapabilities getSpatialCapabilities()

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
public void setAllSpatialCapabilities(boolean allowAll)

setBounds

Added in 1.0.0-alpha01
public void setBounds(@NonNull Bounds bounds)

setEnvironmentVisibility

Added in 1.0.0-alpha01
public void setEnvironmentVisibility(
    @NonNull EnvironmentVisibilityState environmentVisibilityState
)

setPassthroughVisibility

Added in 1.0.0-alpha01
public void setPassthroughVisibility(
    @NonNull PassthroughVisibilityState passthroughVisibilityState
)

setSpatialCapabilities

Added in 1.0.0-alpha01
public void setSpatialCapabilities(@NonNull SpatialCapabilities capabilities)