Class DefaultListener

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(): DefaultListener

Returns

DefaultListener

Methods

public addEventListener(typeStr: string, listenerFunc: Function)

Parameters

  • typeStr: string
  • listenerFunc: Function

public dispatchEvent(evt: LeapEvent)

Parameters

public hasEventListener(type: string, listener: Function): boolean

Parameters

  • type: string
  • listener: Function

Returns

boolean

public onConnect(controller: Controller)

Parameters

public onDisconnect(controller: Controller)

Parameters

public onExit(controller: Controller)

Parameters

public onFrame(controller: Controller, frame: Frame)

Parameters

public onInit(controller: Controller)

Parameters

public removeEventListener(typeStr: string, listenerFunc: Function)

Parameters

  • typeStr: string
  • listenerFunc: Function