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

Instance Methods |
|
(void) | - setItemClass: |
(CraftARItem *) | - itemWithContentsOfDictionary:withUUID:andCollection:andError: |
Class Methods |
|
(CraftARItemFactory *) | + factory |
(void) | + setFactory: |
Detailed Description
The CraftARItemFactory class creates CraftARItems of different subtypes.
Method Documentation
+ (CraftARItemFactory*) factory |
Returns the current items factory
- (CraftARItem*) itemWithContentsOfDictionary: | (NSDictionary *) | itemDictionary | |
withUUID: | (NSString *) | itemUUID | |
andCollection: | (CraftARCollection *) | collection | |
andError: | (CraftARError **) | error | |
Create an Item with the contents of a Dictionary
- Parameters
-
itemDictionary dictionary with the item description (from a JSON response of the CraftAR Recognition API or from the local database) itemUUID uuid of the item to create, must not be nil. collectionUUID uuid of the collection to which the item belongs, it can be nil. error if passed, will be filled with the possible creation error.
- Returns
- CraftARItem created, nil if an error occurred during item creation.
- (void) setItemClass: | (Class) | itemClass |
Set the Item class for the factory to create items of this class. Useful for customizing items.
- Parameters
-
itemClass subclass of CarftARItem
The documentation for this class was generated from the following file:
- CraftARCloudImageRecognitionSDK.framework/Headers/CraftARItemFactory.h