Skip to content

StephenDuan/LiveBus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

LiveBus

  • 由于MutableLiveData(androidx.lifecycle.MutableLiveData)在实现Activity/Service/BroadcastReceiver之间通信比较麻烦,而用EventBus无法满足与生命周期调度,故想在LiveBus的基础上,实现组件之间通信

快速使用

  • 非粘性消息
LiveBus.with("key", String.class);
  • 粘性消息
LiveBus.withSticky("key", String.class);

About

LiveBus通过LiveData实现组件之间通信

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages