Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EventHubClassic

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected eventMap

eventMap: Map<string, Set<Function>>

Methods

Protected emit

  • emit(event: string, ...args: unknown[]): void
  • Parameters

    • event: string
    • Rest ...args: unknown[]

    Returns void

off

  • off(event: string, callback: Function): void
  • 注销事件监听

    Parameters

    • event: string

      事件名

    • callback: Function

      回调函数

    Returns void

on

  • on(event: string, callback: Function): void
  • 注册事件监听

    Parameters

    • event: string

      事件名

    • callback: Function

      回调函数

    Returns void