HKHuman

@objc
public class HKHuman : NSObject

The BioDigital Human 3D View object and API

  • The delegate object

    • Set this to have access to the callback functions in your app

    Declaration

    Swift

    @objc
    public weak var delegate: HKHumanDelegate?
  • HKScene object provides information and control of the 3D scene

    Declaration

    Swift

    @objc
    public var scene: HKScene
  • HKTimeline object controls Chapter navigation and animations

    Declaration

    Swift

    @objc
    public var timeline: HKTimeline
  • HKCamera object for getting and setting the camera

    Declaration

    Swift

    @objc
    public var camera: HKCamera
  • ui

    HKUI object for setting the UI parameters

    Declaration

    Swift

    @objc
    public var ui: HKUI
  • Initialize the Human Body with a view and options to turn off UI elements in the scene

    Declaration

    Swift

    public init(view: UIView, options: [HumanUIOptions : Bool])
  • Initialize the Human Body with a view and the default UI options

    Declaration

    Swift

    @objc
    public init(view: UIView)
  • Set one UI variable to true or false

    Declaration

    Swift

    @objc
    public func setupUI(option: HumanUIOptions, value: Bool)

    Parameters

    option

    a value from the enum HumanUIOptions

    value

    true or false

  • Loads a BioDigital Human 3D module.

    Declaration

    Swift

    @objc
    public func load(model: String, callback: @escaping () -> () )

    Parameters

    model

    The moduleID string

    callback

    A closure to run after the module is loaded

  • Loads about:blank to clear the webview

    Declaration

    Swift

    @objc
    public func unload()
  • Loads index.html, which is an empty scene

    Declaration

    Swift

    @objc
    public func loadIndex( callback: @escaping () -> () )

    Parameters

    callback

    A closure to run after the empty screen is loaded