java.lang.Object | ||
↳ | java.util.Observable | |
↳ | com.vidinoti.android.vdarsdk.VDARRemoteController |
Class used to retrieve and synchronize contexts with the PixLive Maker
platform. Note that all actions can be observed by passing a specific
Observer instance as argument. Each call to the update method of the observer
will include an VDARRemoteController.ObserverUpdateInfo
object
describing the current status of the action.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
VDARRemoteController.Callback<T> | |||||||||||
VDARRemoteController.ObserverUpdateInfo | Describe the status of a current action |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
useLocationInBuildRequest |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the given listener to the listener list.
| |||||||||||
Fetch the context corresponding to the remoteID and insert it into the
local AR DB.
| |||||||||||
Return the singleton instance of the Remote Controller
| |||||||||||
Return the global progress of all remote controller tasks (between 0 and
100).
| |||||||||||
Returns true if the current used servers are the test one (corresponding
to https://ar-test.vidinoti.com ), or the production ones (
corresponding to https://ar.vidinoti.com ).
| |||||||||||
Remove the given listener from the listener list.
| |||||||||||
Sets a custom remote api server endpoint.
| |||||||||||
Switch the remote controller to use to Vidinoti test server for the
current app session (will be reset at false on App restart).
| |||||||||||
This method is deprecated.
Use
syncRemoteContextsAsynchronouslyWithPriors(List, Observer)
instead
| |||||||||||
Synchronize the local AR DB with the remote ARManager for the given set
of priors.
| |||||||||||
Downloads and stores the mapping between the given tag names and the contexts currently
present on the device.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.Observable
| |||||||||||
From class
java.lang.Object
|
Add the given listener to the listener list. The listener is not added a second time if already present in the list.
listener | The listener to add |
---|
Fetch the context corresponding to the remoteID and insert it into the local AR DB. If the context already exists, it is replaced by the newly downloaded one.
remoteID | The remote ID of the context to downloaded |
---|---|
observer | The observer which will receive progress event. Can be null. |
Return the singleton instance of the Remote Controller
Return the global progress of all remote controller tasks (between 0 and 100).
Note that the progress can fluctuate as new tasks can be added while others are progressing. Therefore the progress will not necessarily linearly grow.Returns true if the current used servers are the test one (corresponding to https://ar-test.vidinoti.com ), or the production ones ( corresponding to https://ar.vidinoti.com ).
Remove the given listener from the listener list. The provided listener will not receive anymore calls.
listener | The listener to remove |
---|
Sets a custom remote api server endpoint. The default value is "https://ar.vidinoti.com/api/api.php"
url | the API URL |
---|
Switch the remote controller to use to Vidinoti test server for the current app session (will be reset at false on App restart). Default: Using production server.
This setting is saved and persist accross application launcheduseTestServer | Whether or not to use Vidinoti test server |
---|
This method is deprecated.
Use
syncRemoteContextsAsynchronouslyWithPriors(List, Observer)
instead
Synchronize the local AR DB with the remote ARManager for the given set of priors.
The following actions will be performed:Warning: Synchronization should be started only once at a time. Doing so will ensure a proper behaviour of the program.
priors | The array of priors to synchronize with. Pass null for the default application selected contexts |
---|---|
observer | The observer to be called when the synchronization is done and in progress |
Synchronize the local AR DB with the remote ARManager for the given set of priors.
The following actions will be performed:Warning: Synchronization should be started only once at a time. Doing so will ensure a proper behaviour of the program.
priors | The list of priors to synchronize with. Pass null for the default application selected contexts |
---|---|
observer | The observer to be called when the synchronization is done and in progress |
Downloads and stores the mapping between the given tag names and the contexts currently
present on the device.
This method must be called after a model synchronization and before calling
enableContextsWithTags(List
tagNames | a list of tag names |
---|---|
callback | the callback called once the operation is over. No data is returned and an error is present if an error happened. |