# Prop: handsfree.model

Contains a collection of interfaces for all the models supported by Handsfree (even one's you haven't enabled). Refer to the individual models for more information on what methods and properties are available in each, and Updating Configs to see how to reconfigure them.

# Toggling models on/off

Each model has a .enable(callback) and .disable() method allowing you to toggle the model on/off. If you .enable(callback) a model that hasn't been initialized yet then it will do so, loading any missing dependencies and running the callback once everything is loaded.

This can be used as an alternative to handsfree.update() if you don't need to actually configure the model and are OK with the defaults.

const handsfree = new Handsfree({handpose: true})


# Manually getting data

Each model also has a .getData() method which can be used to get data for a single frame without a loop. For instance, this can be used to detect a pose on a button press.

<button onclick="getData">Get Data</button>

const handsfree = new Handsfree({weboji: true})

function getData () {
  handsfree.model.weboji.getData().then(() => {

# APIs

Each model can be referenced by name, and the original model APIs can be access through handsfree.model[modelName].api once the model has loaded its dependencies, allowing you to work directly with the model.