All Projects → pwittchen → ReactiveBus

pwittchen / ReactiveBus

Licence: Apache-2.0 license
🚍 Reactive Event Bus for JVM (1.7+) and Android apps built with RxJava 2

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ReactiveBus

Rxbus
🚌 The RxBus as steady as an old dog.
Stars: ✭ 334 (+1864.71%)
Mutual labels:  rxjava, eventbus, rxandroid, rxjava2, rxandroid2
Rxjavapriorityscheduler
RxPS - RxJavaPriorityScheduler - A RxJava Priority Scheduler library for Android and Java applications
Stars: ✭ 138 (+711.76%)
Mutual labels:  rxjava, rxandroid, rxjava2, rxandroid2
Rxbiometric
☝️ RxJava and RxKotlin bindings for Biometric Prompt (Fingerprint Scanner) on Android
Stars: ✭ 295 (+1635.29%)
Mutual labels:  rxjava, rxandroid, rxjava2, rxandroid2
Reactivebeacons
Android library scanning BLE beacons nearby with RxJava
Stars: ✭ 171 (+905.88%)
Mutual labels:  rxjava, rxandroid, rxjava2, rxandroid2
Swipe
👉 detects swipe events on Android
Stars: ✭ 324 (+1805.88%)
Mutual labels:  rxjava, rxandroid, rxjava2, rxandroid2
Prefser
Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Stars: ✭ 228 (+1241.18%)
Mutual labels:  rxjava, rxandroid, rxjava2, rxandroid2
Reactivenetwork
Android library listening network connection state and Internet connectivity with RxJava Observables
Stars: ✭ 2,484 (+14511.76%)
Mutual labels:  rxjava, rxandroid, rxjava2, rxandroid2
Rxbus
Android reactive event bus that simplifies communication between Presenters, Activities, Fragments, Threads, Services, etc.
Stars: ✭ 79 (+364.71%)
Mutual labels:  bus, rxjava, event, rxjava2
Reactivewifi
Android library listening available WiFi Access Points and related information with RxJava Observables
Stars: ✭ 186 (+994.12%)
Mutual labels:  rxjava, rxandroid, rxjava2, rxandroid2
Android Clean Architecture Boilerplate
Apply clean architecture on Android
Stars: ✭ 141 (+729.41%)
Mutual labels:  rxjava, rxandroid, rxjava2
Dagger2
Kotlin Dagger2 example project
Stars: ✭ 145 (+752.94%)
Mutual labels:  rxjava, rxjava2, rxandroid2
iMoney
iMoney 金融项目
Stars: ✭ 55 (+223.53%)
Mutual labels:  rxjava, rxjava2, rxandroid2
Mvpframes
整合大量主流开源项目并且可高度配置化的 Android MVP 快速集成框架,支持 AndroidX
Stars: ✭ 100 (+488.24%)
Mutual labels:  rxjava, rxandroid, rxjava2
Reactivesensors
Android library monitoring device hardware sensors with RxJava
Stars: ✭ 161 (+847.06%)
Mutual labels:  rxjava, rxandroid, rxjava2
Aiyagirl
🔥 爱吖妹纸(含 Kotlin 分支版本)——Retrofit + RxJava + MVP 架构 APP 体验代码家的干货集中营 Gank.io,福利多多,不容错过
Stars: ✭ 1,109 (+6423.53%)
Mutual labels:  rxjava, rxandroid, rxjava2
Rxjava2 Operators Magician
你用不惯 RxJava,只因缺了这把钥匙 🔑 You are not used to RxJava, just because of the lack of this key.
Stars: ✭ 868 (+5005.88%)
Mutual labels:  rxjava, rxandroid, rxjava2
Mvvm Architecture Android Beginners
This repository contains a sample app that implements MVVM architecture using Kotlin, ViewModel, LiveData, and etc.
Stars: ✭ 176 (+935.29%)
Mutual labels:  rxjava, rxandroid, rxjava2
Rxbus
Event Bus By RxJava.
Stars: ✭ 2,126 (+12405.88%)
Mutual labels:  rxjava, rxandroid, rxjava2
Androidbasemvp
🚀一个快速搭建MVP+RxJava2+Retrofit 基础框架,主要是封装有Http网络请求、日志、缓存、加载等待、toast、页面状态布局管理、权限、RxBus、Glide图片加载等组件,方便快速开发新项目、减少开发成本。
Stars: ✭ 184 (+982.35%)
Mutual labels:  rxjava, rxandroid, rxjava2
RXBus
RX based bus with lifecycle based queuing support
Stars: ✭ 53 (+211.76%)
Mutual labels:  bus, rxjava, eventbus

ReactiveBus Build Status codecov Maven Central Android Arsenal

🚍 Simple Reactive Event Bus for JVM (1.7+) and Android apps built with RxJava 2

Usage

Bus bus = ReactiveBus.create(); // creating thread safe instance of event bus

Disposable observer = bus.receive().subscribe(new Consumer<Event>() {
    @Override public void accept(Event event) {
      // handle event here
    }
  });

// send a message only (with random id)
bus.send(Event.name("my event 1").build());

// send some data (with random id)
bus.send(Event.name("my event 2").data(serializableObject).build());

// send id, name and some data
bus.send(Event.id("myId").name("my event 3").data(serializableObject).build());

observer.dispose(); // after disposal, observer will stop receiving new events

Download

You can depend on the library through Maven:

<dependency>
    <groupId>com.github.pwittchen</groupId>
    <artifactId>reactivebus</artifactId>
    <version>0.0.5</version>
</dependency>
<dependency>
    <groupId>io.reactivex.rxjava2</groupId>
    <artifactId>rxjava</artifactId>
    <version>2.1.10</version>
</dependency>

or through Gradle:

implementation 'com.github.pwittchen:reactivebus:0.0.5'
implementation 'io.reactivex.rxjava2:rxjava:2.1.10'

Code style

Code style used in the project is called Square from Java Code Styles repository by Square

available at: https://github.com/square/java-code-styles.

Building, tests and static code analysis

To build project, type:

./gradlew build

To run tests, type:

./gradlew test

To run static code analysis, type:

./gradlew check

References

License

Copyright 2018 Piotr Wittchen

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].