public interface InstantTrackerListener
Modifier and Type | Method and Description |
---|---|
void |
onInitializationPoseChanged(InstantTracker tracker,
InitializationPose pose)
Called repeatedly during the initialization phase with information about
the tracking plane
|
void |
onPlaneLost(InstantTracker tracker,
Plane plane)
Called whenever a previously known plane is not found anymore.
|
void |
onPlaneRecognized(InstantTracker tracker,
Plane plane)
Called whenever an instant tracker recognized a new plane that was previously unknown.
|
void |
onPlaneTracked(InstantTracker tracker,
Plane plane)
Called whenever a previously known plane was tracked again.
|
void |
onStateChanged(InstantTracker tracker,
InstantTrackingState state)
Will be called when the state of the tracker was changed internally.
|
void |
onStateChangeFailed(InstantTracker tracker,
InstantTrackingState failedState,
WikitudeError error)
Will be called when changing the Instant Tracking state was not successful.
|
void |
onTracked(InstantTracker tracker,
InstantTarget target)
Called repeatedly during the tracking phase.
|
void |
onTrackingStarted(InstantTracker tracker,
InstantTarget target)
Will be called when tracking is started.
|
void |
onTrackingStopped(InstantTracker tracker)
Will be called when tracking of the scene is lost
|
void onStateChanged(InstantTracker tracker, InstantTrackingState state)
InstantTracker.setState(com.wikitude.tracker.InstantTrackingState)
tracker
- The tracker whose state was changed internallystate
- The state to which the tracker changedvoid onStateChangeFailed(InstantTracker tracker, InstantTrackingState failedState, WikitudeError error)
tracker
- The tracker causing this error.failedState
- The state that was not able to be set.void onInitializationPoseChanged(InstantTracker tracker, InitializationPose pose)
tracker
- The instant tracker who is being initializedpose
- Information about the tracking planevoid onTrackingStarted(InstantTracker tracker, InstantTarget target)
tracker
- The instant tracker that started trackingvoid onTracked(InstantTracker tracker, InstantTarget target)
tracker
- The instant tracker that is tracking the scenetarget
- The tracked instant target that contains information about
the scenevoid onTrackingStopped(InstantTracker tracker)
tracker
- The instant tracker that lost tracking of the scenevoid onPlaneRecognized(InstantTracker tracker, Plane plane)
tracker
- The instant tracker that recognized the plane.plane
- The plane that was recognized.void onPlaneLost(InstantTracker tracker, Plane plane)
tracker
- The instant tracker that lost the plane.plane
- The plane that was lost.void onPlaneTracked(InstantTracker tracker, Plane plane)
tracker
- The instant tracker that tracked the plane.plane
- The plane that was tracked.