Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMessageHandler

An object which handles messages.

Notes

A message handler is a simple way of defining a type which can act upon on a large variety of external input without requiring a large abstract API surface. This is particularly useful in the context of widget frameworks where the number of distinct message types can be unbounded.

Hierarchy

  • IMessageHandler

Index

Methods

Methods

processMessage

  • processMessage(msg: Message): void
  • Process a message sent to the handler.

    Parameters

    • msg: Message

      The message to be processed.

    Returns void

Generated using TypeDoc