Options
All
  • Public
  • Public/Protected
  • All
Menu

EventRegistry provides safe, loosely-coupled access to events in a manner similar to {@link geocortex.framework.commands.CommandRegistry}. If a non-existent event is referenced, it is created. An EventRegistry instance should always be used when referencing commands. A global EventRegistry instance lives in the base geocortex namespace.

Hierarchy

  • EventRegistry

Index

Constructors

Properties

Methods

Constructors

constructor

  • Initializes a new instance of the {@link geocortex.framework.events.EventRegistry} class.

    Parameters

    Returns EventRegistry

Properties

app

Instance of the {@link application.Application} that this registry belongs to.

Methods

clear

  • clear(): void
  • Clears all events, removing all subscriptions.

    Returns void

event

  • event(name: string): GeocortexEvent
  • Fetches an event by name. If the event doesn't exist, an empty one is created.

    Parameters

    • name: string

      The name of the event to fetch or create.

    Returns GeocortexEvent