TargetCollectionResource Class
A TargetCollectionResource represents a Target Collection which is created with the Wikitude Studio Manager. It needs to include the binary .wtc targets describing the targets and needs to be referenced via a URI.
Constructor
TargetCollectionResource
-
uri
-
options
Methods
cancel
()
Cancels the loading of the TargetCollectionResource data.
destroy
()
Destroys the object.
Properties
URL
String
The URL pointing to the referenced target collection. The property is read-only and can only be set on creation.
Events
onError
The trigger fires when the resource could not be loaded.
Causes for this might include bad network connection or a
corrupt target collection.
The trigger is null by default, and will thus result in no action executed when the trigger fires. A developer can add custom functionality by assigning a custom function to onError.
onLoaded
The trigger fires when the resource was successfully loaded.
The trigger is null by default, and will thus result in no action executed when the trigger fires. A developer can add custom functionality by assigning a custom function to onLoaded.