AR.context.setCloudRecognitionServerRegion(AR.CONST.CLOUD_RECOGNITION_SERVER_REGION.CHINA); // AR.CONST.CLOUD_RECOGNITION_SERVER_REGION.CHINA = 2 // so you could just as well pass the variable 2, however it is recommended to pas the const instead World.cloudRecognitionService = new AR.CloudRecognitionService(“<your clientToken>”, “<your tcId>”, { onInitialized: this.trackerLoaded, onError: this.trackerError });
Have fun!
Eva
Do you mean something like this?
createTracker: function createTrackerFn() {
AR.context.setCloudRecognitionServerRegion(2);
World.cloudRecognitionService = new AR.CloudRecognitionService("xxxx", "yyyy", {
onInitialized: this.trackerLoaded,
onError: this.trackerError
});
Hello Frederick,
As
documented here,
under "Regional Availabilty of Cloud Recognition", you need
to make use of proper endpoint and settings both in the SDK, Manager
API and Target Manager. It means that if you would like to use our
China Region then you need to use the following:
Note:
Regions do not share data (yet). Consequently targetcollections
created in China are not available neither in Europe nor in Americas
and viceversa.
For
any further questions pls feel free to ask.
Have
fun!
Eva
Frederick Chung
createTracker: function createTrackerFn() {
World.cloudRecognitionService = new AR.CloudRecognitionService("xxxx", "yyyy", {
onInitialized: this.trackerLoaded,
onError: this.trackerError
});
World.tracker = new AR.ImageTracker(this.cloudRecognitionService, {
onError: this.trackerError
});
},
If want to set using China server, then how and where do I set it?
setCloudRecognitionServerRegion