Companion

object Companion

Factory for obtaining the default Bus implementation.

Calling Bus() creates a new underlying EventManager instance. This is a convenience for users who want a simple entry point without depending directly on internal implementation classes.

Functions

Link copied to clipboard
@JvmName(name = "create")
operator fun invoke(): Bus

Creates a new Bus using the default implementation.

Link copied to clipboard
inline fun <T> Bus.subscribeStatic()

Registers all static handler methods declared on the reified type T.

Link copied to clipboard
inline fun <T> Bus.unsubscribeStatic()

Unregisters all static handler methods declared on the reified type T.