public interface HKHumanInterface
| Modifier and Type | Method and Description |
|---|---|
void |
onAnimationComplete()
Called when the current is done running
|
void |
onAnnotationCreated(java.lang.String annotationId)
Called when a new annotation is created in the scene
|
void |
onAnnotationDestroyed(java.lang.String annotationId)
Called when an annotation is destroyed in the scene
|
void |
onAnnotationsShown(java.lang.Boolean isShown)
Called when annotations are shown or hidden in the scene
|
void |
onAnnotationUpdated(HKAnnotation annotation)
Called when the annotations screen position has changed
|
void |
onCameraUpdated(HKCamera camera)
Called when the camera moves in the scene
|
void |
onChapterTransition(java.lang.String chapterId)
Called when a new chapter is loaded by the scene
|
void |
onModelLoaded(java.lang.String modelId)
Called when loading is complete for a scene
|
void |
onModelLoadError(java.lang.String modelId)
Called when an error has occurred during loading for a scene
|
void |
onObjectColor(java.lang.String objectId,
HKColor color)
Called when an object's color is retrieved
|
void |
onObjectDeselected(java.lang.String objectId)
Called when an object is deselected in the scene
|
void |
onObjectPicked(java.lang.String objectId,
double[] position)
Called when an object is picked by the user
|
void |
onObjectSelected(java.lang.String objectId)
Called when an object is selected in the scene
|
void |
onObjectsShown(java.util.Map<java.lang.String,java.lang.Object> objects)
Called when a set of objects are shown or hidden in the scene
|
void |
onSceneCapture(java.lang.String captureString)
Called when a scene capture is complete
|
void |
onSceneInit(java.lang.String title)
Called when the scene is initialized and metadata is available
|
void |
onSceneRestore()
Called when the scene is restored
|
void |
onScreenshot(android.graphics.Bitmap image)
Called when a screenshot is returned from the SDK
|
void |
onTimelineUpdated(HKTimeline timeline)
Called when the timeline has been updated
|
void |
onXrayEnabled(java.lang.Boolean isEnabled)
Called when xray mode is enabled or disabled
|
void onModelLoaded(java.lang.String modelId)
modelId - String id of the loaded modelvoid onModelLoadError(java.lang.String modelId)
modelId - String id of the loaded modelvoid onObjectSelected(java.lang.String objectId)
objectId - String id of the selected objectvoid onObjectDeselected(java.lang.String objectId)
objectId - String id of the selected objectvoid onObjectsShown(java.util.Map<java.lang.String,java.lang.Object> objects)
objects - a Map of object IDs and boolean values for shown/hiddenvoid onChapterTransition(java.lang.String chapterId)
chapterId - String id of the current chaptervoid onAnimationComplete()
void onScreenshot(android.graphics.Bitmap image)
image - Bitmap representation of the saved screenshotvoid onSceneInit(java.lang.String title)
title - the scene titlevoid onXrayEnabled(java.lang.Boolean isEnabled)
isEnabled - true if enabledvoid onSceneRestore()
void onTimelineUpdated(HKTimeline timeline)
timeline - the HKTimeline objectvoid onAnnotationCreated(java.lang.String annotationId)
annotationId - the ID of the new HKAnnotation objectvoid onAnnotationDestroyed(java.lang.String annotationId)
annotationId - the ID of the destroyed HKAnnotationvoid onCameraUpdated(HKCamera camera)
camera - the updated HKCamera objectvoid onObjectPicked(java.lang.String objectId,
double[] position)
objectId - the ID of the objectposition - the 3D position of the picked objectvoid onAnnotationsShown(java.lang.Boolean isShown)
isShown - true if annotations are shownvoid onAnnotationUpdated(HKAnnotation annotation)
annotation - the updated HKAnnotation objectvoid onObjectColor(java.lang.String objectId,
HKColor color)
objectId - the ID of the objectcolor - the HKColor of the objectvoid onSceneCapture(java.lang.String captureString)
captureString - the saved data as a Json String
the capture can also be retrieved as a Map object with HKScene.captureJson