com.craftar
Class CraftARContentBase
- java.lang.Object
-
- com.craftar.CraftARContentBase
-
- Direct Known Subclasses:
- CraftARContent
public class CraftARContentBase extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description class
CraftARContentBase.ContentType
Defines the types of contents that the CraftARSDK supports.class
CraftARContentBase.ContentTypeName
Field names for the supported content types in the JSON scene description.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected void
clearContentResources()
static int
contentTypeFromJSON(JSONObject object)
Returns the type of this content from it's JSONvoid
setContentVersion(int contentsVersion)
protected void
trackingLost()
Called when the parent ARItem tracking is lostprotected void
trackingStarted()
Called when the parent ARItem starts being tracked.
-
-
-
Method Detail
-
trackingStarted
protected void trackingStarted()
Called when the parent ARItem starts being tracked.
-
trackingLost
protected void trackingLost()
Called when the parent ARItem tracking is lost
-
setContentVersion
public void setContentVersion(int contentsVersion)
-
clearContentResources
protected void clearContentResources()
-
contentTypeFromJSON
public static int contentTypeFromJSON(JSONObject object) throws CraftARSDKException
Returns the type of this content from it's JSON- Throws:
CraftARSDKException
-
-