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.
Link copied to clipboard
A 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, 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, noinline handler: (T) -> Unit): Subscription
Registers a lambda handler for event type T on this TypedEventBus.
Link copied to clipboard
Registers a wildcard handler with Priority.NORMAL default.
fun TypedEventBus<*>.subscribeAll(priority: Int = Priority.NORMAL, handler: (Event) -> Unit): Subscription
Registers a wildcard handler on this TypedEventBus with Priority.NORMAL default.
Link copied to clipboard
Returns a TypedEventBus view over this bus restricted to subtypes of E.