|
Name
|
Type
|
Description
|
Required/Optional
|
Default
|
|---|---|---|---|---|
|
params
|
Object
|
Configuration object containing tracker settings.
|
Required
|
|
|
params.name
|
String
|
Name of the tracker or tracking context.
|
Required
|
|
|
params.enableTrackingEvents
|
Boolean
|
Enables or disables tracking events.
|
Optional
|
true
|
|
params.trackingHints
|
Boolean
|
Enables or disables tracking hints for improved recognition.
|
Optional
|
true
|
|
successCallback
|
Function
|
Called when the operation completes successfully.
|
Optional
|
|
|
errorCallback
|
Function
|
Called when the operation fails.
|
Optional
|
|
|
If both enableTrackingEvents and trackingHints are true, tracking data is continuously broadcast via successCallback.
|
|
Name
|
Type
|
Description
|
Required/Optional
|
Default
|
|---|---|---|---|---|
|
trackerName
|
String
|
The tracker ID that this marker should be associated with (defined via addTracker).
|
Required
|
|
|
name
|
String
|
Studio ID of a target widget.
|
Required
|
|
|
src
|
String
|
Defines the type and ID of the tracking target to use.
Examples:
• "vuforia-vumark:///vumark?id=5:789"
• "vuforia-vumark:///app/resources/Uploaded/BarCodeEAN?id="
• "vuforia-image:///image?id=image-target-1"
• "vuforia-runtime-image:///app/resources/Uploaded/stones.jpg?id=0486b3eb-880e-4c9b-8416-0e646f409e4c"
• "vuforia-area:///area?id=area-target-1"
• "vuforia-model:///model?id=model-target-1"
|
Required
|
|
|
size
|
Float
|
Size of the tracking target in meters, used for image and ThingMark tracking targets.
|
Optional
|
0
|
|
successCallback
|
Function
|
Called when the operation completes successfully.
|
Optional
|
|
|
errorCallback
|
Function
|
Called when the operation fails.
|
Optional
|
|
Name
|
Type
|
Description
|
Required/Optional
|
|---|---|---|---|
|
successCallback
|
Function
|
Called when the operation completes successfully.
|
Optional
|
|
errorCallback
|
Function
|
Called when the operation fails.
|
Optional
|
|
|
The array passed to successCallback looks like: ["targetName1", "targetName2"]
|
|
Name
|
Type
|
Description
|
Required/Optional
|
|---|---|---|---|
|
successCallback
|
Function
|
Called when the operation completes successfully.
|
Optional
|
|
errorCallback
|
Function
|
Called when the operation fails.
|
Optional
|
|
|
This function removes all anchors and resets gesture-based transforms (for example, scaling, rotation, position).
|