public interface ARTrackingListener
Observes changes to a session’s overall tracking quality. Register through
ARSession#addTrackingListener(ARTrackingListener); events are delivered
on the EDT.Methods
public abstract void trackingStateChanged(ARSession session, ARTrackingState state, ARTrackingFailureReason reason) | Invoked on the EDT when the session’s tracking state changes. |
Method details
trackingStateChanged
public abstract void trackingStateChanged(ARSession session, ARTrackingState state, ARTrackingFailureReason reason)Invoked on the EDT when the session’s tracking state changes.
Parameters
sessionARSession- the session whose state changed
stateARTrackingState- the new tracking state
reasonARTrackingFailureReason- why tracking is degraded, or
ARTrackingFailureReason#NONEwhen it is not