SourceEventHandler
@objc(BMPSourceEventHandler)
public protocol SourceEventHandler
Manages listeners to specific SourceEvent and notifies those listeners when such an event is being
emitted.
Listeners need to conform to the SourceListener protocol.
See SourceListener about possible event method implementations.
-
Adds a
SourceListenerto a handler.Declaration
Swift
@objc(addListener:) func add(listener: SourceListener)Parameters
listenerA instance to a class conforming to
SourceListenerprotocol. -
Removes a
SourceListenerto handleSourceEvents.Declaration
Swift
@objc(removeListener:) func remove(listener: SourceListener)Parameters
listenerA instance to a class conforming to
SourceListenerprotocol.
SourceEventHandler Protocol Reference