Anchorable


public interface Anchorable<T extends Object> extends Trackable

Known direct subclasses
Plane

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


Trackable object that can have an Anchor attached.

Summary

Public methods

abstract @NonNull AnchorResult

Creates an Anchor attached to this Trackable.

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-beta02
abstract @NonNull AnchorResult createAnchor(@NonNull Pose pose)

Creates an Anchor attached to this Trackable.