Bus
Represents an event bus capable of registering subscribers and dispatching events.
Implementations are responsible for:
Scanning subscriber objects and classes for functions annotated with EventHandler and ExceptionHandler.
Routing posted Event instances to all matching event handlers.
Routing exceptions thrown by handlers to matching
@ExceptionHandlermethods.Respecting event cancellation when applicable.
A default implementation is provided via the companion object's invoke operator. Library users normally obtain a bus instance by calling Bus() rather than referencing the internal implementation directly.
Inheritors
Types
Functions
Registers a class containing static handler methods.
Registers all static handler methods declared on the reified type T.
Unregisters an object from the bus.
Unregisters all static handlers declared for the given class.
Unregisters all static handlers declared for the given Kotlin class.
Unregisters all static handler methods declared on the reified type T.