public final class AnchorState


Represents the current state of an Anchor instance's mutable fields.

Summary

Public constructors

AnchorState(@NonNull TrackingState trackingState, Pose pose)

Public methods

final Pose

the pose of the center of the detected anchor.

final @NonNull TrackingState

the TrackingState value describing if the anchor is being updated.

Public constructors

AnchorState

Added in 1.0.0-alpha01
public AnchorState(@NonNull TrackingState trackingState, Pose pose)

Public methods

getPose

Added in 1.0.0-alpha01
public final Pose getPose()

the pose of the center of the detected anchor. Can be null iff the tracking state is TrackingState.Stopped.

getTrackingState

Added in 1.0.0-alpha01
public final @NonNull TrackingState getTrackingState()

the TrackingState value describing if the anchor is being updated.