adiliqbl / RxBus

RxBus Relay using Jake Wharton's RxRelay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RxBus

Simple Relay RxBus with similar api to Event Bus
The Bus makes use of PublishRelay provided by RxRelay.

Thanks to

Event Bus
RxRelay

Usage

Register to all events in class

  1. Event class
class ConsumerEvent
  1. Observe to event types
RxBus.observe(ConsumerEvent.class)
     .subscribe(event -> {})

Event will be received on both sticky and non sticky events.

  1. Post events
RxBus.post(new MyEvent())
RxBus.postSticky(new MyEvent())

About

RxBus Relay using Jake Wharton's RxRelay

License:Apache License 2.0


Languages

Language:Kotlin 100.0%