public interface TrackerManager
TargetCollectionResource createTargetCollectionResource(String url)
url
- Url to the resource file. This can be a http url, a local file(file://) or an asset (file:///android_asset()@Deprecated TargetCollectionResource createTargetCollectionResource(String url, TargetCollectionResourceLoadingCallback loadingCallback)
createTargetCollectionResource(String)
and TargetCollectionResource.load(com.wikitude.tracker.TargetCollectionResourceLoadingCallback)
instead.url
- url Url to the resource file. This can be a http url, a local file(file://) or an asset (file:///android_asset()loadingCallback
- Callback object that is notified when the loading succeeds of fails@Deprecated CloudRecognitionService createCloudRecognitionService(String clientToken, String targetCollectionId, CloudRecognitionServiceInitializationCallback initializationCallback, CloudRecognitionServiceConfiguration configuration)
createCloudRecognitionService(String, 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.configuration
- CloudRecognitionServiceConfiguration
object that defines how the CloudRecognitionService
behaves.CloudRecognitionService
instanceIllegalArgumentException
- If clientToken or targetCollectionId are null.CloudRecognitionService createCloudRecognitionService(String clientToken, String groupId, String targetCollectionId, CloudRecognitionServiceInitializationCallback initializationCallback, CloudRecognitionServiceConfiguration configuration)
CloudRecognitionService
with the passed authentication detailsclientToken
- Your client tokengroupId
- Your group idtargetCollectionId
- 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, ObjectTrackerConfiguration configuration)
targetCollectionResource
- The TargetCollectionResource that the ObjectTracker should useeventListener
- The object that will be listening for ObjectTracker eventsconfiguration
- Configuration object that changes the way ObjectTracker behaves.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 destroyedvoid isPlatformAssistedTrackingSupported(IsPlatformAssistedTrackingAvailableCallback callback)
callback
- A callback object which is invoked when availability information changesCallStatus setCustomTrackerConfiguration(String customTrackerConfiguration)
customTrackerConfiguration
- the custom configuration as JSON string