Options
All
  • Public
  • Public/Protected
  • All
Menu

Parses gestures coming from Vision Node and allows to add callbacks to perform an action when such gestures occure.

// example
const gestureHandler = new broox.mediaPlayer.GestureHandler(500, 2);
gestureHandler.onPresence(() => console.log('Presence'));

Hierarchy

  • GestureHandler

Index

Constructors

Methods

  • add(args: any[]): void
  • onBothHandsOnChest(callback: (() => any)): void
  • Adds a callback function for the "both hands on chest" gesture.

    Parameters

    • callback: (() => any)

      Function that will be executed when the "both hands on chest" gesture is detected.

        • (): any
        • Returns any

    Returns void

  • onBothHandsUp(callback: (() => any)): void
  • Adds a callback function for the "both hands up" gesture.

    Parameters

    • callback: (() => any)

      Function that will be executed when the "both hands up" gesture is detected.

        • (): any
        • Returns any

    Returns void

  • onLeftHandOnChest(callback: (() => any)): void
  • Adds a callback function for the "left hand on chest" gesture.

    Parameters

    • callback: (() => any)

      Function that will be executed when the "left hand on chest" gesture is detected.

        • (): any
        • Returns any

    Returns void

  • onLeftHandUp(callback: (() => any)): void
  • onPresence(callback: (() => any)): void
  • onRightHandOnChest(callback: (() => any)): void
  • Adds a callback function for the "right hand on chest" gesture.

    Parameters

    • callback: (() => any)

      Function that will be executed when the "right hand on chest" gesture is detected.

        • (): any
        • Returns any

    Returns void

  • onRightHandUp(callback: (() => any)): void
  • Adds a callback function for the "right hand up" gesture.

    Parameters

    • callback: (() => any)

      Function that will be executed when the "right hand up" gesture is detected.

        • (): any
        • Returns any

    Returns void

Generated using TypeDoc