Class TrackerManager
This class provides factory methods to create certain tracker objects.
Inheritance
Namespace: wikitude.sdk.uwp
Assembly: wikitude.sdk.dll
Syntax
public sealed class TrackerManager
Methods
createCloudRecognitionService(String, String, String, CloudRecognitionServiceConfiguration)
Use this method to access Wikitude's cloud recognition service
Declaration
public CloudRecognitionService createCloudRecognitionService(string clientToken_, string groupId_, string targetCollectionId_, CloudRecognitionServiceConfiguration cloudRecognitionServiceConfiguraton_)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientToken_ | The client token that is associated with your Wikitude cloud recognition account. |
System.String | groupId_ | The groupId that is associated with your Wikitude cloud recognition account. |
System.String | targetCollectionId_ | The identifier for the target collection that should be loaded on the Wikitude cloud recognition server. |
CloudRecognitionServiceConfiguration | cloudRecognitionServiceConfiguraton_ |
Returns
Type | Description |
---|---|
CloudRecognitionService | A newly created CloudRecognitionService object, used to offload image target recognition to the Wikitude cloud recognition servers. |
createImageTracker(CloudRecognitionService, ImageTrackerConfiguration)
Use this method to create an ImageTracker from a CloudRecognitionService object.
Image Tracker with cloud recognition service require a continuous internet connection in order to communicate with the Wikitude cloud recognition server.
Declaration
public ImageTracker createImageTracker(CloudRecognitionService cloudRecognitionService, ImageTrackerConfiguration imageTrackerConfiguration_)
Parameters
Type | Name | Description |
---|---|---|
CloudRecognitionService | cloudRecognitionService | The cloud recognition service used to send frames and fetch target data. |
ImageTrackerConfiguration | imageTrackerConfiguration_ | The configuration oject used to define how the image tracker behaves. |
Returns
Type | Description |
---|---|
ImageTracker | The created image tracker. |
createImageTracker(TargetCollectionResource, ImageTrackerConfiguration)
Use this method to create an ImageTracker from a TargetCollectionResource object.
Declaration
public ImageTracker createImageTracker(TargetCollectionResource targetCollectionResource_, ImageTrackerConfiguration imageTrackerConfiguration_)
Parameters
Type | Name | Description |
---|---|---|
TargetCollectionResource | targetCollectionResource_ | The target collection resource used to load the wtc file. |
ImageTrackerConfiguration | imageTrackerConfiguration_ | The configuration oject used to define how the image tracker behaves. |
Returns
Type | Description |
---|---|
ImageTracker | The created image tracker. |
createInstantTracker(InstantTrackerConfiguration)
Use this method to create an InstantTracker with the given configuration
Declaration
public InstantTracker createInstantTracker(InstantTrackerConfiguration instantTrackerConfiguration_)
Parameters
Type | Name | Description |
---|---|---|
InstantTrackerConfiguration | instantTrackerConfiguration_ | The configuration oject used to define how the instant tracker behaves. |
Returns
Type | Description |
---|---|
InstantTracker | The created instant tracker. |
createObjectTracker(TargetCollectionResource, ObjectTrackerConfiguration)
Use this method to create an ObjectTracker from a TargetCollectionResource object.
In case the given TargetCollectionResource is not loading at the time this method is called, TargetCollectionResource::load is called.
Declaration
public ObjectTracker createObjectTracker(TargetCollectionResource targetCollectionResource_, ObjectTrackerConfiguration objectTrackerConfiguration_)
Parameters
Type | Name | Description |
---|---|---|
TargetCollectionResource | targetCollectionResource_ | The target collection resource used to load the wto file. |
ObjectTrackerConfiguration | objectTrackerConfiguration_ | The configuration oject used to define how the object tracker behaves. |
Returns
Type | Description |
---|---|
ObjectTracker | The created object tracker. |
createTargetCollectionResource(String)
Use this method to load a target collection file.
Declaration
public TargetCollectionResource createTargetCollectionResource(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | A URL from where the target collection resource should be loaded from. Files can be loaded from the application bundle or a remote server. |
Returns
Type | Description |
---|---|
TargetCollectionResource | The newly created TargetCollectionResource. |