Class TargetCollectionResource
Target Collection Resources can either retrieve image targets from a .wtc file or object targets from a .wto file. The file can be loaded eitherfrom the application bundle or a remote server. If the file was loaded from a server, no internet connection is required anymore after the loading finished successfully.
Inheritance
Namespace: wikitude.sdk.uwp
Assembly: wikitude.sdk.dll
Syntax
public sealed class TargetCollectionResource
Methods
cancelLoading()
Causes the target collection resource to cancel any ongoing load operation.
Declaration
public void cancelLoading()
getUrl()
Returns the URL that will be used to locate and load the file.
Declaration
public string getUrl()
Returns
Type | Description |
---|---|
System.String |
isLoading()
Returns if the target collection resource is currently loading, or if it already finished (successfully or not) In case load was not called yet, this method also returns false.
Declaration
public bool isLoading()
Returns
Type | Description |
---|---|
System.Boolean |
load(LoadCompletionHandler)
Use this method to start the actual loading process of the resource.
Declaration
public void load(LoadCompletionHandler handler_)
Parameters
Type | Name | Description |
---|---|---|
LoadCompletionHandler | handler_ | A completion delegate that is called in case the resource is available or failed loading. |