public static interface VuforiaTrackable.Listener
Modifier and Type | Method and Description |
---|---|
void |
addTrackable(VuforiaTrackable trackable)
Adds a trackable on which this
VuforiaTrackable.Listener is listening. |
void |
onNotTracked()
Called by the system to inform the trackable that it is no longer visible.
|
void |
onTracked(TrackableResult trackableResult,
CameraName cameraName,
Camera camera,
VuforiaTrackable child)
onTracked(TrackableResult, CameraName, Camera, org.firstinspires.ftc.robotcore.external.navigation.VuforiaTrackable) is called by the system to notify the listener that its associated trackable is currently visible. |
void onTracked(TrackableResult trackableResult, CameraName cameraName, Camera camera, VuforiaTrackable child)
onTracked(TrackableResult, CameraName, Camera, org.firstinspires.ftc.robotcore.external.navigation.VuforiaTrackable)
is called by the system to notify the listener that its associated trackable is currently visible.trackableResult
- the Vuforia trackable result object in which we were locatedcameraName
- the name of the camera used by Vuforia to track this objectcamera
- the Camera
instance used in the tracking. Will be null if
a built-in camera is usedvoid onNotTracked()
void addTrackable(VuforiaTrackable trackable)
VuforiaTrackable.Listener
is listening. May not be
called once tracking has begun. If the VuforiaTrackable.Listener
is already listening
to this trackable, then the call has no effect.