WTTrackerManager Class Reference
Inherits from | NSObject |
---|---|
Declared in | WTTrackerManager.h |
– createClientTrackerFromURL:extendedTargets:andDelegate:
Returns a weak pointer to a newly created WTClientTracker object.
- (WTClientTracker *)createClientTrackerFromURL:(nonnull NSURL *)clientTrackerURL extendedTargets:(nullable NSArray *)extendedTargets andDelegate:(nonnull id<WTClientTrackerDelegate>)delegate
Parameters
clientTrackerURL |
A URL from where the client tracker should be loaded from. Client tracker can be loaded from the application bundle or a remote server. |
---|---|
extendedTargets |
An array containing string objects where each one of them represents an image target that should be tracked as extended target. |
delegate |
A object that conforms to the WTClientTrackerDelegate protocol. |
Return Value
WTClientTracker * A pointer to a newly created WTClientTracker object.
Discussion
Callers need to make sure to retain the reference count e.g. by assigning to a strong property.
Declared In
WTTrackerManager.h
– createCloudTrackerWithToken:targetCollectionId:extendedTargets:andDelegate:
Returns a weak pointer to a newly created WTCloudTracker object.
- (WTCloudTracker *)createCloudTrackerWithToken:(nonnull NSString *)authenticationToken targetCollectionId:(nonnull NSString *)targetCollectionId extendedTargets:(nullable NSArray *)extendedTargets andDelegate:(id<WTCloudTrackerDelegate>)delegate
Parameters
authenticationToken |
The client token that is associated with your Wikitude cloud recogniition account. |
---|---|
targetCollectionId |
An identifier which target collection should be loaded on the Wikitude cloud recognition server. |
extendedTargets |
An array containing string objects where each one of them represents an image target that should be tracked as extended target. |
delegate |
A object that conforms to the WTCloudTrackerDelegate protocol. |
Return Value
WTCloudTracker * A pointer to anewly created WTCloudTracker object.
Discussion
Callers need to make sure to retian the reference count e.g. by assigning to a strong property.
Declared In
WTTrackerManager.h