HKHumanDelegate
@objc
public protocol HKHumanDelegate
The optional delegate callback functions
-
Callback when the current animation is finished playing
Declaration
Swift
@objc optional func onAnimationComplete()
-
Callback when a model loaded into the Human view has been initialized
Declaration
Swift
@objc optional func onInitMessage()
-
Callback when an object has been selected
Declaration
Swift
@objc optional func onObjectSelected(objectId: String, view: HKHuman)
Parameters
objectId
the ID of the selected object
view
the HKHuman object in which the object was selected
-
Callback when an object has been deselected
Declaration
Swift
@objc optional func onObjectDeselected(objectId: String, view: HKHuman)
Parameters
objectId
the ID of the selected object
view
the HKHuman object in which the object was selected
-
Callback when a chapter has been loaded
Declaration
Swift
@objc optional func onChapterTransition(chapterId: String, view: HKHuman)
Parameters
chapterId
the ID of the chapter, for lookup in the chapters map
view
the HKHuman object in which the transition occurred
-
Callback when a screenshot has been generated
Declaration
Swift
@objc optional func screenshot(image: UIImage)
Parameters
image
the UIImage screenshot