PlaneTrackingMode


public final class PlaneTrackingMode


Feature that allows tracking of and provides information about scene planes.

Summary

Public fields

static final @NonNull PlaneTrackingMode

Planes will not be tracked.

static final @NonNull PlaneTrackingMode

Horizontal and vertical planes will be tracked.

Public methods

final int
@NonNull String

Returns a string representation of PlaneTrackingMode for debugging.

Public fields

DISABLED

public static final @NonNull PlaneTrackingMode DISABLED

Planes will not be tracked.

HORIZONTAL_AND_VERTICAL

public static final @NonNull PlaneTrackingMode HORIZONTAL_AND_VERTICAL

Horizontal and vertical planes will be tracked. Note that setting this mode will consume additional runtime resources.

Supported runtimes:

  • OpenXR

  • Play Services

Required permissions:

Public methods

getMode

Added in 1.0.0-beta02
public final int getMode()

toString

public @NonNull String toString()

Returns a string representation of PlaneTrackingMode for debugging.

Note: Not intended for production use.