public interface TrackerManager
Modifier and Type | Interface and Description |
---|---|
static class |
TrackerManager.ServerRegion
|
@Deprecated void setCloudRecognitionServerRegion(TrackerManager.ServerRegion region)
CloudRecognitionServiceConfiguration.setCloudRecognitionServerURL(java.lang.String)
instead.region
- Defines which server will be usedTargetCollectionResource createTargetCollectionResource(String url, TargetCollectionResourceLoadingCallback loadingCallback)
url
- Url to the .wtc file, can either be a http url or local asset. In case of a local asset
the url must start with file:///android_asset/loadingCallback
- Callback object that is notified when the loading succeeds of fails@Deprecated CloudRecognitionService createCloudRecognitionService(String clientToken, String targetCollectionId, CloudRecognitionServiceInitializationCallback initializationCallback)
createCloudRecognitionService(String, String, CloudRecognitionServiceInitializationCallback, CloudRecognitionServiceConfiguration)
instead.CloudRecognitionService
with the passed authentication detailsclientToken
- Your client tokentargetCollectionId
- The collection id of the target collection that should be loadedinitializationCallback
- CloudRecognitionServiceInitializationCallback
object that is notified when the initialization succeeds or fails.CloudRecognitionService
instanceIllegalArgumentException
- If clientToken or targetCollectionId are null.CloudRecognitionService createCloudRecognitionService(String clientToken, String targetCollectionId, CloudRecognitionServiceInitializationCallback initializationCallback, CloudRecognitionServiceConfiguration configuration)
CloudRecognitionService
with the passed authentication detailsclientToken
- Your client tokentargetCollectionId
- The collection id of the target collection that should be loadedinitializationCallback
- CloudRecognitionServiceInitializationCallback
object that is notified when the initialization succeeds or fails.configuration
- CloudRecognitionServiceConfiguration
object that defines how the CloudRecognitionService
behaves.CloudRecognitionService
instanceIllegalArgumentException
- If clientToken or targetCollectionId are null.ImageTracker createImageTracker(TargetCollectionResource targetCollectionResource, ImageTrackerListener eventListener, ImageTrackerConfiguration configuration)
targetCollectionResource
- The TargetCollectionResource that the ImageTracker should useeventListener
- The object that will be listening for ImageTracker eventsconfiguration
- Configuration object that changes the way ImageTracker behavesImageTracker createImageTracker(CloudRecognitionService cloudRecognitionService, ImageTrackerListener eventListener, ImageTrackerConfiguration configuration)
cloudRecognitionService
- The CloudRecognitionService that the ImageTracker should useeventListener
- The object that will be listening for ImageTracker eventsconfiguration
- Configuration object that changes the way ImageTracker behavesObjectTracker createObjectTracker(TargetCollectionResource targetCollectionResource, ObjectTrackerListener eventListener, Object reserved)
targetCollectionResource
- The TargetCollectionResource that the ObjectTracker should useeventListener
- The object that will be listening for ObjectTracker eventsreserved
- Reserved for future use. Please use null for now.InstantTracker createInstantTracker(InstantTrackerListener listener, InstantTrackerConfiguration configuration)
listener
- The object that will be listening for InstantTracker eventsconfiguration
- Configuration object that changes the way InstantTracker behaves. The default configuration is used if this is null.void destroyTargetCollectionResource(TargetCollectionResource targetCollectionResource)
targetCollectionResource
- The TargetCollectionResource instance that should be destroyedvoid destroyCloudRecognitionService(CloudRecognitionService cloudRecognitionService)
cloudRecognitionService
- The CloudRecognitionService instance that should be destroyedvoid destroyImageTracker(ImageTracker imageTracker)
imageTracker
- The ImageTracker instance that should be destroyedvoid destroyObjectTracker(ObjectTracker objectTracker)
objectTracker
- The ObjectTracker instance that should be destroyedvoid destroyInstantTracker(InstantTracker instantTracker)
instantTracker
- The InstantTracker instance that should be destroyed@Deprecated ClientTracker create3dClientTracker(String url)
createObjectTracker(com.wikitude.tracker.TargetCollectionResource, ObjectTrackerListener, java.lang.Object)
and createTargetCollectionResource(java.lang.String, com.wikitude.tracker.TargetCollectionResourceLoadingCallback)
url
- Url to the .wtc file, can either be a http url or local asset. In case of a local asset
the url must start with file:///android_asset/@Deprecated ClientTracker create2dClientTracker(String url)
createImageTracker(com.wikitude.tracker.TargetCollectionResource, com.wikitude.tracker.ImageTrackerListener, com.wikitude.tracker.ImageTrackerConfiguration)
and createTargetCollectionResource(java.lang.String, com.wikitude.tracker.TargetCollectionResourceLoadingCallback)
url
- Url to the .wtc file, can either be a http url or local asset. In case of a local asset
the url must start with file:///android_asset/@Deprecated ClientTracker create2dClientTracker(String url, String[] extendedTrackingTargets)
createTargetCollectionResource(java.lang.String, com.wikitude.tracker.TargetCollectionResourceLoadingCallback)
and createImageTracker(com.wikitude.tracker.TargetCollectionResource, com.wikitude.tracker.ImageTrackerListener, com.wikitude.tracker.ImageTrackerConfiguration)
and use the
configuration parameter to set the extended tracking targetsurl
- Url to the .wtc file, can either be a http url or local asset. In case of a local asset
the url must start with file:///android_asset/extendedTrackingTargets
- A list of target names which should be tracked in extended mode,
pass {"*"} to track all targets in extended mode@Deprecated CloudTracker create2dCloudTracker(String authenticationToken, String collectionId)
createCloudRecognitionService(java.lang.String, java.lang.String, com.wikitude.tracker.CloudRecognitionServiceInitializationCallback)
and createImageTracker(com.wikitude.tracker.TargetCollectionResource, com.wikitude.tracker.ImageTrackerListener, com.wikitude.tracker.ImageTrackerConfiguration)
authenticationToken
- Your cloud authentication tokencollectionId
- The collection id of the target collection the CloudTracker should load@Deprecated CloudTracker create2dCloudTracker(String authenticationToken, String collectionId, String[] extendedTrackingTargets)
createCloudRecognitionService(java.lang.String, java.lang.String, com.wikitude.tracker.CloudRecognitionServiceInitializationCallback)
and createImageTracker(com.wikitude.tracker.TargetCollectionResource, com.wikitude.tracker.ImageTrackerListener, com.wikitude.tracker.ImageTrackerConfiguration)
and use the
configuration parameter to set the extended tracking targetsauthenticationToken
- Your cloud authentication tokencollectionId
- The collection id of the target collection the CloudTracker should loadextendedTrackingTargets
- A list of target names which should be tracked in extended mode,
pass {"*"} to track all targets in extended mode@Deprecated void destroyTracker(Tracker tracker)
destroyImageTracker(com.wikitude.tracker.ImageTracker)
, destroyObjectTracker(ObjectTracker)
or destroyInstantTracker(com.wikitude.tracker.InstantTracker)
with the appropriate tracker typetracker
- Tracker to be destroyed