com.craftar
Class CraftARContentFactoryBase
- java.lang.Object
-
- com.craftar.CraftARContentFactoryBase
-
- Direct Known Subclasses:
- CraftARContentFactory
public abstract class CraftARContentFactoryBase extends java.lang.Object
Factory to create CraftAR contents from the scene description of an AR item. Extend this class to customize AR content creation and set the factory using the superclass.
-
-
Field Summary
Fields Modifier and Type Field and Description int
mContentsVersion
-
Constructor Summary
Constructors Constructor and Description CraftARContentFactoryBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description protected abstract CraftARContentBase
contentFromJSONObject(JSONObject contentJSON)
Returns aCraftARContent
of the type specified in the JSON object.static void
setFactory(CraftARContentFactoryBase factory)
-
-
-
Method Detail
-
setFactory
public static void setFactory(CraftARContentFactoryBase factory)
-
contentFromJSONObject
protected abstract CraftARContentBase contentFromJSONObject(JSONObject contentJSON) throws CraftARSDKException
Returns aCraftARContent
of the type specified in the JSON object.- Throws:
CraftARSDKException
-
-