Options
All
  • Public
  • Public/Protected
  • All
Menu

Plugins can listen to events that happen during Glean's lifecycle.

Every Glean plugin must extend this class.

Type parameters

Hierarchy

Index

Constructors

Properties

Methods

Constructors

  • new default<E>(event: string, name: string): default<E>
  • Instantiates the Glean plugin.

    Type parameters

    Parameters

    • event: string

      The name of the even this plugin listens to.

    • name: string

      The name of this plugin.

    Returns default<E>

Properties

event: string
name: string

Methods

  • An action that will be triggered everytime the listened to event occurs.

    Parameters

    • Rest ...args: EventContext<E>

      The arguments that are expected to be passed by this event.

    Returns EventResult<E>

Generated using TypeDoc