All Projects → FreddyChen → CEventCenter

FreddyChen / CEventCenter

Licence: Apache-2.0 license
一个Android事件分发中心库,基于对象池及接口回调实现。实现类似BroadcastReceiver/RxBus/EventBus等的消息事件传递功能,用于在Activity/Fragment/Service之间的消息传递通讯。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to CEventCenter

Rabbitevents
Nuwber's events provide a simple observer implementation, allowing you to listen for various events that occur in your current and another application. For example, if you need to react to some event published from another API.
Stars: ✭ 84 (-27.59%)
Mutual labels:  eventbus, broadcast
Bekit
bekit框架致力于解决在应用开发中的公共性痛点,已有“事件总线”、“流程引擎”、“服务引擎”。其中“流程引擎”可作为分布式事务解决方案saga模式的一种实现,并且它很轻量不需要服务端、不需要配置,就可直接使用。
Stars: ✭ 71 (-38.79%)
Mutual labels:  event, eventbus
ReactiveBus
🚍 Reactive Event Bus for JVM (1.7+) and Android apps built with RxJava 2
Stars: ✭ 17 (-85.34%)
Mutual labels:  event, eventbus
Multiplatform-Bus
Kotlin event-bus compatible with Android & native iOS
Stars: ✭ 43 (-62.93%)
Mutual labels:  event, eventbus
laravel-broadcast-demo
Article: Laravel PWA to implement Broadcasting
Stars: ✭ 17 (-85.34%)
Mutual labels:  event, broadcast
rxbus2
Listen and handle event ,based on RxJava.
Stars: ✭ 32 (-72.41%)
Mutual labels:  eventbus, rxbus
Breadcast
Small Broadcast Receiver Library for Android
Stars: ✭ 15 (-87.07%)
Mutual labels:  event, broadcast
AndroidBatteryStats
Displays all battery stats of an Android device using broadcast receiver.
Stars: ✭ 20 (-82.76%)
Mutual labels:  broadcast-reciever, broadcastreceiver
azeroth-event
Lightweight event-driven framework
Stars: ✭ 18 (-84.48%)
Mutual labels:  event, eventbus
Unpeek Livedata
LiveData 数据倒灌:别问,问就是不可预期 - Perfect alternative to SingleLiveEvent, supporting multiple observers.
Stars: ✭ 208 (+79.31%)
Mutual labels:  event, eventbus
Elegantbus
🔥🔥Android 平台,基于LivaData的EventBus,无侵入,更优雅,支持跨进程,跨应用粘性事件,自定义事件等功能。
Stars: ✭ 156 (+34.48%)
Mutual labels:  event, eventbus
RxBus
🍾 标签/线程/Kotlin/自动注销的RxBus
Stars: ✭ 25 (-78.45%)
Mutual labels:  eventbus, rxbus
evon
Fast and versatile event dispatcher code generator for Golang
Stars: ✭ 15 (-87.07%)
Mutual labels:  event, eventbus
RxHttp
RxJava2+Retrofit+OkHttp3
Stars: ✭ 13 (-88.79%)
Mutual labels:  rxbus, rxbus2
eventsourcing-go
Event Sourcing + CQRS using Golang Tutorial
Stars: ✭ 75 (-35.34%)
Mutual labels:  event
dropwizard-guicey-ext
Dropwizard-guicey extensions
Stars: ✭ 11 (-90.52%)
Mutual labels:  eventbus
palette-21-frontend
Frontend website for Palette 2021 using React.js
Stars: ✭ 14 (-87.93%)
Mutual labels:  event
MVPHulk
Android MVP 快速集成方案 (支持AndroidX)
Stars: ✭ 19 (-83.62%)
Mutual labels:  eventbus
sapa
sapa is a library that creates a UI with a simple event system.
Stars: ✭ 65 (-43.97%)
Mutual labels:  event
pg-pubsub
Reliable PostgreSQL LISTEN/NOTIFY with inter-process lock support
Stars: ✭ 50 (-56.9%)
Mutual labels:  eventbus

CEventCenter

一个Android事件分发中心库,基于对象池及接口回调实现。实现类似BroadcastReceiver/RxBus/EventBus等的消息事件传递功能,用于在Activity/Fragment/Service之间的消息传递通讯。

使用方式,以Activity为例,Fragment/Service同样

1. 添加依赖:implementation 'com.freddy:eventcenter_lib:1.0.1'
2.在需要注册监听器的Activity实现I_CEventCenter接口,例:public class MainActivity extends AppCompatActivity implements I_CEventListener {};
3.重写onCEvent(String topic, int msgCode, int resultCode, Object obj){ } 方法;
4.在需要注册监听器的Activity的onCreate()方法中调用CEventCenter.registerEventListener(I_CEventListener listener, String topic/String[] topics)注册监听器;
5.在需要注册监听器的Activity的onDestroy()方法中调用CEventCenter.unregisterEventListener(I_CEventListener listener, String topic/String[] topics)注销监听器;
6.在需要发布事件的Activity调用CEventCenter.dispatchEvent(CEvent event/ String topic, int msgCode, int resultCode, Object obj)方法发布事件即可。

使用过程中,如果有任何疑问,请联系我。

如果该项目对你有用,麻烦star一下哈。。。

QQ交流群:1015178804,目前是Android IM技术交流群,后续写的文章,也会用此群进行交流。

目前准备写的文章如下:

1.《开源一个自用的Android IM库,基于Netty+TCP+Protobuf实现》
2.《开源一个自用的Android IM库,基于Netty+WebSocket+Protobuf实现》
3.《开源一个自用的Android IM库,基于Netty+UDP+Protobuf实现》
4.《开源一个自用的Android网络请求库,基于Rxjava+Retrofit实现》
5.《开源一个自用的Android线程池,基于ThreadPoolExecutor实现》
6.《开源一个自用的Android IM UI界面,包含文本、图片、语音、表情、红包等实现》
7.《开源一个自用的Android图片加载库,基于Glide实现》
8.《开源一个自用的Android视频压缩库,基于MediaCodec实现》
9.《开源一个自用的Android视频压缩库,基于ffmpeg实现》
10.《开源一个自用的Android事件分发中心库,基于对象池实现》

以上文章没有先后顺序,想到哪就写到哪吧。

项目博客地址:

掘金

最新新开了一个微信公众号,方便后续KulaChat发布一些系列文章,同时也是为了激励自己写作。主要发布一些原创的Android IM相关的文章(也会包含其它方向),不定时更新。感兴趣的同学可以关注一下,谢谢。PS:感觉鸿洋大神提供的公众号文章排版方式,感激不尽~~

FreddyChen的微信公众号

License

Copyright 2019, chenshichao       

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].