EventListener.removeEventListener

Removes an event listener using its assigned id.

  1. bool removeEventListener(void delegate(T) listener)
  2. bool removeEventListener(size_t count)
    class EventListener(O : Event, Children...)
    @safe
    bool
    removeEventListener
    (
    size_t count
    )
    if (
    areValidChildren!(O, Children)
    )
  3. bool opOpAssign(size_t count)

Return Value

Type: bool

true if the event has been removed, false otherwise

Examples

// add
auto id = example.addEventListener(&event);

// remove
assert(example.removeEventListener(id));

Meta