Trackable

public interface Trackable
Known Indirect Subclasses

A Trackable is something that ARCore can track and that Anchors can be attached to.

Public Methods

abstract Anchor
createAnchor(Pose pose)
Creates an Anchor at the given Pose in the world coordinate space that is attached to this Trackable.
abstract Collection<Anchor>
getAnchors()
Gets the Anchors attached to this Trackable.
abstract TrackingState
getTrackingState()
Gets the TrackingState of this Trackable.

Public Methods

public abstract Anchor createAnchor (Pose pose)

Creates an Anchor at the given Pose in the world coordinate space that is attached to this Trackable. The type of Trackable will determine the semantics of attachment and how the Anchor's Pose will be updated to maintain this relationship. Note that the relative offset between the Pose of multiple Anchors attached to a Trackable may adjust slightly over time as ARCore updates its model of the world.

Parameters
pose
Throws
NotTrackingException if the trackable's tracking state was not TRACKING
SessionPausedException if the session had been paused.
ResourceExhaustedException if too many anchors exist.

public abstract Collection<Anchor> getAnchors ()

Gets the Anchors attached to this Trackable.

public abstract TrackingState getTrackingState ()

Gets the TrackingState of this Trackable.

Send feedback about...