Options
All
  • Public
  • Public/Protected
  • All
Menu

Represent one or more callback functions. Use the assignment operator = to set a single function to call, or the add() method to add multiple functions.

Type parameters

  • T

Hierarchy

  • MulticastDelegate

Index

Methods

Methods

add

  • add(fn: T): void
  • Add a function to call. When called multiple times, all added function will be called.

    Parameters

    • fn: T

    Returns void

clear

  • clear(): void
  • Clear the callback so no function will get called.

    Returns void

remove

  • remove(fn: T): void
  • Remove the given function from the callback. Doesn't do anything if the function is not set as callback.

    Parameters

    • fn: T

    Returns void