App interface.

Index

Constructors

constructor

  • new App(version: string): App
  • Parameters

    • version: string

    Returns App

Methods

getDeviceManager

listen

  • listen(): Promise<void>
  • listen is called by app when the app is ready to handle the intents.

    Returns Promise<void>

onExecute

  • onExecute(handler: ExecuteHandler): this
  • onExecute is called by app to attach the handler for EXECUTE intent.

    Parameters

    Returns this

onIdentify

  • onIdentify(handler: IdentifyHandler): this
  • onIdentify is called by app to attach the handler for IDENTIFY intent.

    Parameters

    Returns this

onReachableDevices

  • onReachableDevices(handler: ReachableDevicesHandler): this
  • onReachableDevices is called by app to attach the handler for REACHABLE_DEVICES intent.

    Parameters

    Returns this