CraftAROnDeviceCollection Class Reference
#import <CraftAROnDeviceCollection.h>
Inheritance diagram for CraftAROnDeviceCollection:

Instance Methods |
|
(void) | - syncWithOnDone:andOnError: |
(void) | - syncWithOnProgress:andOnDone:andOnError: |
(void) | - syncWithToken:andOnDone:andOnError: |
(void) | - syncWithToken:andOnProgress:andOnDone:andOnError: |
(NSArray *) | - listItems |
(CraftARItem *) | - getItem:andError: |
![]() |
Properties |
|
NSArray * | tokens |
![]() |
Detailed Description
A collection represents the set of Items from a given collection in the CraftAR database.
Method Documentation
- (CraftARItem*) getItem: | (NSString *) | itemUUID | |
andError: | (CraftARError **) | error | |
Get an item
- Parameters
-
itemUUID uuid from the CraftAR service of the item to get from this collection.
- Returns
- Returns a CraftARItem.
- (NSArray*) listItems |
Get a list of the uuids of the items in this collection
- Returns
- NSArray containing strings with the uuids of the items in this collection
- (void) syncWithOnDone: | (void(^)(CraftAROnDeviceCollection *collection, int itemDownloads, int downloadErrors)) | doneBlock | |
andOnError: | (void(^)(NSError *error)) | errorBlock | |
Synchronizes a collection from the CraftAR Service.
- Parameters
-
doneBlock Executed with the synchronization is done. Passes the total number of items that needed to download resources and the number of items that failed in doing so. errorBlock Executed with a CraftARError if the synchronization operation could not be executed.
- (void) syncWithOnProgress: | (void(^)(float progress)) | progressBlock | |
andOnDone: | (void(^)(CraftAROnDeviceCollection *collection, int itemDownloads, int downloadErrors)) | doneBlock | |
andOnError: | (void(^)(NSError *error)) | errorBlock | |
Synchronizes a collection from the CraftAR Service.
- Parameters
-
progressBlock Executed with the progress completion (percentage). doneBlock Executed with the synchronization is done. Passes the total number of items that needed to download resources and the number of items that failed in doing so. errorBlock Executed with a CraftARError if the synchronization operation could not be executed.
- (void) syncWithToken: | (NSString *) | token | |
andOnDone: | (void(^)(CraftAROnDeviceCollection *collection, int itemDownloads, int downloadErrors)) | doneBlock | |
andOnError: | (void(^)(NSError *error)) | errorBlock | |
Synchronizes a collection from the CraftAR Service.
- Parameters
-
token specific token from this collection to use for synchronization. doneBlock Executed with the synchronization is done. Passes the total number of items that needed to download resources and the number of items that failed in doing so. errorBlock Executed with a CraftARError if the synchronization operation could not be executed.
- (void) syncWithToken: | (NSString *) | token | |
andOnProgress: | (void(^)(float progress)) | progressBlock | |
andOnDone: | (void(^)(CraftAROnDeviceCollection *collection, int itemDownloads, int downloadErrors)) | doneBlock | |
andOnError: | (void(^)(NSError *error)) | errorBlock | |
Synchronizes a collection from the CraftAR Service.
- Parameters
-
token specific token from this collection to use for synchronization. progressBlock Executed with the progress completion (percentage). doneBlock Executed with the synchronization is done. Passes the total number of items that needed to download resources and the number of items that failed in doing so. errorBlock Executed with a CraftARError if the synchronization operation could not be executed.
Property Documentation
|
readnonatomicassign |
Collection tokens
The documentation for this class was generated from the following file:
- CraftARProSDK.framework/Headers/CraftAROnDeviceCollection.h