Anchorable


public interface Anchorable<T extends Object> extends Trackable

Known direct subclasses
Face

Contains the tracking information of a detected human face.

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 an Anchor can be attached to.

Summary

Public methods

abstract @NonNull AnchorCreateResult

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

Inherited methods

From androidx.xr.arcore.Trackable
abstract @NonNull StateFlow<@NonNull Trackable.State>

Emits the current state of this trackable.

Public methods

createAnchor

Added in 1.0.0-alpha12
abstract @NonNull AnchorCreateResult createAnchor(@NonNull Pose pose)

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