JozzBusExtensions extension
Extensions for the JozzBus interface.
- on
Methods
-
autoListen<
T extends JozzEvent> (JozzLifecycleMixin lifecycleOwner, void onData(T)) → JozzBusSubscription< T> -
Available on JozzBus, provided by the JozzBusExtensions extension
Listen to an event and auto-register its subscription with a lifecycle-aware object. -
emitEvent(
JozzEvent event) → JozzBus -
Available on JozzBus, provided by the JozzBusExtensions extension
Convenience method to emit events with a fluent API. -
listen<
T extends JozzEvent> (void onData(T)) → JozzBusSubscription< T> -
Available on JozzBus, provided by the JozzBusExtensions extension
Creates a subscription to events of type T.