com.craftar
Class CraftARItemFactory
- java.lang.Object
-
- com.craftar.CraftARItemFactory
-
- Direct Known Subclasses:
- CraftARItemARFactory
public class CraftARItemFactory extends java.lang.Object
The CraftARItemFactory creates the items when a recognition request matched some image. This class will always return items of the class CraftARItem. If you want to create customized items (i.e, having extra fields), you must extend this class and callCraftARItemFactory.setFactory(YourClass yourFactory)
to notify the SDK to use your Factory instead of the default one.
-
-
Constructor Summary
Constructors Constructor and Description CraftARItemFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static CraftARItemFactory
getFactory()
protected CraftARItem
getItem(CraftARCollection collection, JSONObject itemJSON)
static void
setFactory(CraftARItemFactory factory)
Set the factory used to to create CraftARItems in the SDK.
-
-
-
Method Detail
-
getFactory
public static CraftARItemFactory getFactory()
-
setFactory
public static void setFactory(CraftARItemFactory factory)
Set the factory used to to create CraftARItems in the SDK. Useful for customizing items.
-
getItem
protected CraftARItem getItem(CraftARCollection collection, JSONObject itemJSON)
-
-