subscribeStatic

open fun subscribeStatic(klass: Class<*>)

Registers all static methods on klass annotated with @Subscribe.

Methods handling event types outside of the E hierarchy are silently ignored at dispatch time; the underlying bus only invokes handlers whose registered type matches the posted event.

See EventBus.subscribeStatic for details on static vs instance methods and the Kotlin object caveat.

Use unsubscribeStatic with the same class to remove these handlers.