com.craftar
Interface CraftAROnDeviceCollectionManager.SyncCollectionListener
-
- Enclosing class:
- CraftAROnDeviceCollectionManager
public static interface CraftAROnDeviceCollectionManager.SyncCollectionListener
Listener for the calls tosyncCollection()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
syncFailed(CraftAROnDeviceCollection collection, CraftARError error)
Sync could not be done.void
syncFinishedWithErrors(CraftAROnDeviceCollection collection, int itemsToSync, int syncErrors)
The collection sync was completed but some resources could not be downloaded.void
syncProgress(CraftAROnDeviceCollection collection, float progress)
Progress syncing the collection.void
syncSuccessful(CraftAROnDeviceCollection collection)
The collection sync was completed successfully, and the collection is ready to be loaded.
-
-
-
Method Detail
-
syncSuccessful
void syncSuccessful(CraftAROnDeviceCollection collection)
The collection sync was completed successfully, and the collection is ready to be loaded.- Parameters:
collection
- the collection synchronized updated
-
syncFinishedWithErrors
void syncFinishedWithErrors(CraftAROnDeviceCollection collection, int itemsToSync, int syncErrors)
The collection sync was completed but some resources could not be downloaded.- Parameters:
collection
- the collection synchronized updateditemsToSync
- number of items that needed to download resources (they are new or need to be updated)syncErrors
- number of items that failed downloading resources (the item will did not synchronize)
-
syncProgress
void syncProgress(CraftAROnDeviceCollection collection, float progress)
Progress syncing the collection. The progress from 0 to 0.5 shows the progress downloading the new bundle, while the progress from 0.5 to 1 shows the progress adding the bundle to the internal storage.
-
syncFailed
void syncFailed(CraftAROnDeviceCollection collection, CraftARError error)
Sync could not be done. Note that this may be common, since the user might not have data connection at some moment. You might consider loading the collection into memory even if the sync call failed.- Parameters:
error
- contains a description of the error produced and an error code to identify the problem.
-
-
Comments
0 comments
Article is closed for comments.