wongzy / Rxeventbus
Licence: apache-2.0
A EventBus based on RxJava2, using Retention.CLASS annotation.
Stars: ✭ 68
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Rxeventbus
MVPSamples
🚀(Java 版)快速搭建 MVP + RxJava + Retrofit + EventBus 的框架,方便快速开发新项目、减少开发成本。
Stars: ✭ 113 (+66.18%)
Mutual labels: eventbus, rxjava2
Kotlinmvpsamples
🚀(Kotlin 版 )快速搭建 Kotlin + MVP + RxJava + Retrofit + EventBus 的框架,方便快速开发新项目、减少开发成本。
Stars: ✭ 103 (+51.47%)
Mutual labels: rxjava2, eventbus
Rxbus2
RxJava2 based bus with queuing (e.g. lifecycle based) support
Stars: ✭ 116 (+70.59%)
Mutual labels: rxjava2, eventbus
ReactiveBus
🚍 Reactive Event Bus for JVM (1.7+) and Android apps built with RxJava 2
Stars: ✭ 17 (-75%)
Mutual labels: eventbus, rxjava2
Nybus
NYBus (RxBus) - A pub-sub library for Android and Java applications
Stars: ✭ 283 (+316.18%)
Mutual labels: rxjava2, eventbus
Retrokotlin
Simple Android app to show how unit testing with MockWebServer and Architecture Components (ViewModel + LiveData)
Stars: ✭ 55 (-19.12%)
Mutual labels: rxjava2
Newssync
Sample application with MVVM pattern using RxJava and Architecture Components
Stars: ✭ 46 (-32.35%)
Mutual labels: rxjava2
Tdcapp
Sample app which access the TDC (The Developer's Conference) REST API.
Stars: ✭ 55 (-19.12%)
Mutual labels: rxjava2
Graphql Retrofit Converter
A Retrofit 2 Converter.Factory for GraphQL.
Stars: ✭ 46 (-32.35%)
Mutual labels: rxjava2
Weatherapplication
A WeatherApplication with usage of different libraries of Android.
Stars: ✭ 61 (-10.29%)
Mutual labels: rxjava2
Exchange Rates Mvvm
Sample Android project which incorporates MVVM, databinding, RxJava2, Dagger2 and Clean Architecture approach.
Stars: ✭ 43 (-36.76%)
Mutual labels: rxjava2
Aiyagirl
🔥 爱吖妹纸(含 Kotlin 分支版本)——Retrofit + RxJava + MVP 架构 APP 体验代码家的干货集中营 Gank.io,福利多多,不容错过
Stars: ✭ 1,109 (+1530.88%)
Mutual labels: rxjava2
Business Search App Java
Showcases object oriented programming in Java, Java Swing, Kotlin, and Android
Stars: ✭ 53 (-22.06%)
Mutual labels: rxjava2
中文文档
RxEventBus |A EventBus based on RxJava2, using Retention.CLASS annotation.
Getting Started
- Subscriber
- register subscriber
@Override
public void onStart() {
super.onStart();
RxEventBus.getDefault().register(this);
}
- write Subscribe method, like this
@Subscribe(threadMode = ThreadMode.MAIN)
public void onMessageHandle(String s) {
mTextView.setText(s);
}
- don't forget unregister when activity or others destroyed
@Override
public void onDestroy() {
super.onDestroy();
RxEventBus.getDefault().unregister(this);
}
- Post
RxEventBus.getDefault().post(mEditText.getText().toString());
Of cause you can post any kind of message, not just String
Install
this project isn't pushed to maven, if you want to use it, just
git clone https://github.com/JoshuaRogue/RxEventBus.git
and copy module to your project.
It will be pushed to maven soon.
demo
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].