UserInterfaceEventHandler
@MainActor
@objc(BMPUserInterfaceEventHandler)
public protocol UserInterfaceEventHandler : NSObjectProtocol
Handles adding and removing of event listeners.
-
Adds an event listener.
Declaration
Swift
@objc(addUserInterfaceListener:) @MainActor func add(listener: UserInterfaceListener)
Parameters
listener
The event listener to be added.
-
Removes an event listener.
Declaration
Swift
@objc(removeUserInterfaceListener:) @MainActor func remove(listener: UserInterfaceListener)
Parameters
listener
The event listener to be removed.