提交 3c4ba09d 编写于 作者: J JessYan

Improve useEventBus's comments

上级 17c70033
......@@ -128,9 +128,13 @@ public class BasePresenter<M extends IModel, V extends IView> implements IPresen
}
/**
* 是否使用 {@link EventBus},默认为使用(true),
* 是否使用 EventBus
* Arms 核心库现在并不会依赖某个 EventBus, 要想使用 EventBus, 还请在项目中自行依赖对应的 EventBus
* 现在支持两种 EventBus, greenrobot 的 EventBus 和畅销书 《Android源码设计模式解析与实战》的作者 何红辉 所作的 AndroidEventBus
* 确保依赖后, 将此方法返回 true, Arms 会自动检测您依赖的 EventBus, 并自动注册
* 这种做法可以让使用者有自行选择三方库的权利, 并且还可以减轻 Arms 的体积
*
* @return
* @return 返回 {@code true} (默认为使用 {@code true}), Arms 会自动注册 EventBus
*/
public boolean useEventBus() {
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册