EventListenerKey
public struct EventListenerKey
A key that is issued when subscribing to an event publisher that can be used to revoke the subscription to that publisher, halting further events from invoking the event listener closure associated with this event listener key.
-
Removes the event listener associated with this event listener key. Even though
EventListenerKey
is a struct type, copies of the same original event listener key returned by an event publisher all cancel the same underlying event listener entry.Calling this method multiple times has no effect.
Declaration
Swift
public func removeListener()