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
SourceListener
to a handler.Declaration
Swift
@objc(addListener:) func add(listener: SourceListener)
Parameters
listener
A instance to a class conforming to
SourceListener
protocol. -
Removes a
SourceListener
to handleSourceEvents
.Declaration
Swift
@objc(removeListener:) func remove(listener: SourceListener)
Parameters
listener
A instance to a class conforming to
SourceListener
protocol.