public interface ObjectTrackerListener
Modifier and Type | Method and Description |
---|---|
void |
onErrorLoadingTargets(ObjectTracker tracker,
WikitudeError error)
Will be called if there was an error when loading the targets
|
void |
onExtendedTrackingQualityChanged(ObjectTracker tracker,
ObjectTarget target,
int oldTrackingQuality,
int newTrackingQuality)
Called when the tracker is running in extended mode and the quality of the tracking
changed
|
void |
onObjectLost(ObjectTracker tracker,
ObjectTarget target)
Will be called when an object target is lost by the target
|
void |
onObjectRecognized(ObjectTracker tracker,
ObjectTarget target)
Will be called when an object target is first recognized by the tracker
|
void |
onObjectTracked(ObjectTracker tracker,
ObjectTarget target)
Called repeatedly when the object target is tracked by the tracker
|
void |
onTargetsLoaded(ObjectTracker tracker)
Will be called when the tracker successfully loaded the targets
|
void onTargetsLoaded(ObjectTracker tracker)
tracker
- The ObjectTracker
which loaded the targetsvoid onErrorLoadingTargets(ObjectTracker tracker, WikitudeError error)
tracker
- The ObjectTracker
which caused the errorerror
- The error object describing the issue.void onObjectRecognized(ObjectTracker tracker, ObjectTarget target)
tracker
- The ObjectTracker
that recognized the ObjectTarget
target
- Contains information about the recognized ObjectTarget
void onObjectTracked(ObjectTracker tracker, ObjectTarget target)
tracker
- The ObjectTracker
that is tracking the ObjectTarget
target
- Contains information about the tracked ObjectTarget
void onObjectLost(ObjectTracker tracker, ObjectTarget target)
tracker
- The ObjectTracker
that lost the ObjectTarget
target
- Contains information about the lost ObjectTarget
void onExtendedTrackingQualityChanged(ObjectTracker tracker, ObjectTarget target, int oldTrackingQuality, int newTrackingQuality)
tracker
- The ObjectTracker
that is running in extended modetarget
- Contains information about the tracked ObjectTarget
oldTrackingQuality
- The previous tracking qualitynewTrackingQuality
- The current tracking quality