All Projects → fmtjava → LiveDataBus

fmtjava / LiveDataBus

Licence: other
基于LiveData实现的一款不用反注册,不会内存泄露的轻量级消息总线框架,支持订阅普通事件消息和粘性事件

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to LiveDataBus

Jetpack Mvvm Best Practice
是 难得一见 的 Jetpack MVVM 最佳实践!在 以简驭繁 的代码中,对 视图控制器 乃至 标准化开发模式 形成正确、深入的理解!
Stars: ✭ 6,950 (+40782.35%)
Mutual labels:  livedata, androidx
Clean-MVVM-NewsApp
Android News app developed using Clean + MVVM architecture
Stars: ✭ 52 (+205.88%)
Mutual labels:  livedata, androidx
ReactiveLiveData
Transformation functions for LiveData
Stars: ✭ 80 (+370.59%)
Mutual labels:  livedata, androidx
Jetpack Kotlin Eyepetizer
一款基于Kotlin + Jetpack核心组件 + 协程 + 组件化实现的精美仿开眼视频App(提供Flutter、React Native、小程序版本 😁 )
Stars: ✭ 82 (+382.35%)
Mutual labels:  livedata, livedatabus
Liveeventbus
📬EventBus for Android,消息总线,基于LiveData,具有生命周期感知能力,支持Sticky,支持AndroidX,支持跨进程,支持跨APP
Stars: ✭ 3,192 (+18676.47%)
Mutual labels:  livedata, livedatabus
WanAndroidJetpack
🔥 WanAndroid 客户端,Kotlin + MVVM + Jetpack + Retrofit + Glide。基于 MVVM 架构,用 Jetpack 实现,网络采用 Kotlin 的协程和 Retrofit 配合使用!精美的 UI,便捷突出的功能实现,欢迎下载体验!
Stars: ✭ 124 (+629.41%)
Mutual labels:  livedata, androidx
yliveticker
Get market data from Yahoo Finance websocket in near-real time.
Stars: ✭ 90 (+429.41%)
Mutual labels:  livedata
Kotlin-Coroutine-Flow
Search engine functionality using Kotlin Coroutines and Flow
Stars: ✭ 25 (+47.06%)
Mutual labels:  livedata
HEIF-converter
Converter for High Efficiency Image Format(HEIF)
Stars: ✭ 24 (+41.18%)
Mutual labels:  androidx
BannerView
Android BannerView 图片轮播控件,支持无限循环,可设置显示各种样式,支持添加banner切换动画。调用简单,代码稳定,体积小。
Stars: ✭ 23 (+35.29%)
Mutual labels:  androidx
JetpackDemo
Jetpack demo that used to show how to use Jetpack libraries.
Stars: ✭ 77 (+352.94%)
Mutual labels:  livedata
recast
🦸‍♂️ Recast migrates your old extensions to AndroidX, making them compatible with the latest version of Kodular.
Stars: ✭ 13 (-23.53%)
Mutual labels:  androidx
weather-app-android-mvvm
Simple MVVM practice repository for very very beginners. You don't need to know about Dagger, Coroutine or Rx for understanding MVVM and this project. To check the MVVM Architecture Bengali Tutorial visit my blog site
Stars: ✭ 32 (+88.24%)
Mutual labels:  livedata
Jetpack-Compose-MVI-Demo
Demo / Sample Android Project created with Jetpack Compose and MVI Architecture Pattern
Stars: ✭ 114 (+570.59%)
Mutual labels:  livedata
ToDoApp
📱My android playground app - Simple and Fastest todo app - developing to cover most android concepts, simple logic can make me focus more on framework
Stars: ✭ 28 (+64.71%)
Mutual labels:  livedata
PlayAndroid
✌️✊👋玩安卓Mvvm组件化客户端,整合Jetpack组件DataBinding、ViewModel以及LiveData;屏幕适配✔️状态栏沉浸式✔️黑夜模式✔️,无数据、加载失败状态页;骨架屏、Koin依赖注入等
Stars: ✭ 193 (+1035.29%)
Mutual labels:  livedata
LifecycleCells
An Android library that provides a Lifecycle to any ViewHolder through the implementation of the LifecycleOwner interface, allowing it to interact with a Lifecycle-Aware Component.
Stars: ✭ 19 (+11.76%)
Mutual labels:  livedata
Android-Mvi-Starter
Android MVI Starter application
Stars: ✭ 19 (+11.76%)
Mutual labels:  livedata
AndroidGo
Android、Flutter 开发者帮助 APP。包含事件分发、性能分析、Google Jetpack组件、OkHttp、RxJava、Retrofit、Volley、Canvas绘制以及优秀博文代码案例等内容,帮助开发者快速上手!
Stars: ✭ 30 (+76.47%)
Mutual labels:  livedata
android-live-broadcasts
Live broadcast receiver library for Android
Stars: ✭ 19 (+11.76%)
Mutual labels:  livedata

LiveDataBus version

基于LiveData实现的一款不用反注册,不会内存泄露的轻量级消息总线框架,支持订阅普通事件消息和粘性事件

How to

Step 1. Add the JitPack repository to your build file

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

implementation 'com.github.fmtjava:LiveDataBus:1.0.1'

订阅普通消息事件

  LiveDataBus.with<User>("login").observe(this, {
            tv_text.text = it.name
        })

发送普通消息事件

 LiveDataBus.with<User>("login").postData(user)

订阅粘性消息事件

 LiveDataBus.with<String>("name").observeStick(this, {
            tv_text.text = it
        })

发送性消息事件

  LiveDataBus.with<String>("name").postStickData("fmt")
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].