RxBus:RxBus像老狗一样稳定 源码

上传:bird14892 浏览: 11 推荐: 0 文件:ZIP 大小:175.6KB 上传时间:2021-04-25 09:40:12 版权申诉
下载 Gradle: implementation " com.blankj:rxbus:1.6 " 如何使用 非粘性事件 注册事件 public class YourActivity extends Activity { @Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate(savedInstanceState); setContentView( R . layout . activity_main); // 注册 String 类型事件 RxBus . getDefault() . subscribe( this , new RxBus . Callback () {
上传资源
用户评论