Package-level declarations
Types
Link copied to clipboard
interface Cancellable
Optional interface for events that support cancellation.
Link copied to clipboard
Optional interface for events that carry a mutable result value.
Link copied to clipboard
object Priority
Predefined priority constants for use with @Subscribe and lambda subscribe overloads.
Link copied to clipboard
Handle returned by lambda-based EventBus.subscribe overloads.
Link copied to clipboard
Functions
Link copied to clipboard
Returns true if at least one handler is registered for T or any of its supertypes.
Link copied to clipboard
inline fun <T : Event> EventBus.subscribe(priority: Int = Priority.NORMAL, async: Boolean = false, noinline handler: (T) -> Unit): Subscription
Registers a lambda handler for event type T and returns a Subscription token.
inline fun <T : Event> TypedEventBus<in T>.subscribe(priority: Int = Priority.NORMAL, async: Boolean = false, noinline handler: (T) -> Unit): Subscription
Registers a lambda handler for event type T on this TypedEventBus and returns a Subscription token.
Link copied to clipboard
Registers a wildcard handler with Priority.NORMAL as the default priority.
fun TypedEventBus<*>.subscribeAll(priority: Int = Priority.NORMAL, handler: (Event) -> Unit): Subscription
Registers a wildcard handler on this TypedEventBus with Priority.NORMAL as the default priority.