Trackable


public interface Trackable<State extends Object>

Known direct subclasses
Plane

Describes the system's current best knowledge of a real-world planar surface.


An object that ARCore for Jetpack XR can track and that Anchors can be attached to.

Summary

Nested types

public interface Trackable.State

The subset of data that is common to the state of all Trackable instances.

Public methods

abstract @NonNull Anchor

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

abstract @NonNull StateFlow<@NonNull Trackable.State>

Emits the current state of this trackable.

Public methods

createAnchor

Added in 1.0.0-alpha01
abstract @NonNull Anchor createAnchor(@NonNull Pose pose)

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

getState

Added in 1.0.0-alpha01
abstract @NonNull StateFlow<@NonNull Trackable.StategetState()

Emits the current state of this trackable.