# Event: handsfree-init

This event is triggered on the document after Handsfree is instantiated with new Handsfree(). It receives the handsfree instance, configured and ready to go. This is the only event that you can't listen to with handsfree.on().

# Receives

event
An event object containing the handsfree instance that was initialized. Because this is an event the instance is stored in event.detail

# Examples

# Listening on the document

// Listen for the event
document.addEventListener('handsfree-init', (event) => {
  console.log('The initialized handsfree instance', event.detail)
})

// Instantiate
const handsfree = new Handsfree()
Last Updated: 12/21/2020, 4:05:17 PM
Debugger