Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EventEmitter

Hierarchy

Implemented by

Index

Methods

_emit

  • _emit(eventName: any, e: any): any

_signal

  • _signal(eventName: any, e: any): void

addEventListener

  • addEventListener(name: string, callback: Function, capturing?: boolean): void
  • Parameters

    • name: string
    • callback: Function
    • Optional capturing: boolean

    Returns void

off

  • off(name: string, callback: Function): void
  • Parameters

    • name: string
    • callback: Function

    Returns void

on

  • on(name: string, callback: Function, capturing?: boolean): void

once

  • once(name: string, callback: Function): void

removeAllListeners

  • removeAllListeners(name?: string): void

removeDefaultHandler

  • removeDefaultHandler(name: string, callback: Function): void

removeEventListener

  • removeEventListener(name: string, callback: Function): void
  • Parameters

    • name: string
    • callback: Function

    Returns void

removeListener

  • removeListener(name: string, callback: Function): void
  • Parameters

    • name: string
    • callback: Function

    Returns void

setDefaultHandler

  • setDefaultHandler(name: string, callback: Function): void

Generated using TypeDoc