本文整理汇总了Java中cn.droidlover.xdroid.event.BusFactory类的典型用法代码示例。如果您正苦于以下问题:Java BusFactory类的具体用法?Java BusFactory怎么用?Java BusFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BusFactory类属于cn.droidlover.xdroid.event包,在下文中一共展示了BusFactory类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onActivityCreated
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
if (useEventBus()) {
BusFactory.getBus().register(this);
}
setListener();
initData(savedInstanceState);
}
示例2: onStart
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
protected void onStart() {
super.onStart();
if (useEventBus()) {
BusFactory.getBus().register(this);
}
}
示例3: onDestroyView
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
public void onDestroyView() {
super.onDestroyView();
if (useEventBus())
BusFactory.getBus().unregister(this);
getUiDelegate().destory();
}
示例4: onDestroy
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
if (useEventBus())
BusFactory.getBus().unregister(this);
getUiDelegate().destory();
}
示例5: onCreateViewLazy
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
protected void onCreateViewLazy(Bundle savedInstanceState) {
super.onCreateViewLazy(savedInstanceState);
if (getLayoutId() > 0) {
setContentView(getLayoutId());
bindUI(getRealRootView());
}
if (useEventBus()) {
BusFactory.getBus().register(this);
}
setListener();
initData(savedInstanceState);
}
示例6: onDestoryLazy
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
protected void onDestoryLazy() {
super.onDestoryLazy();
if (useEventBus()) {
BusFactory.getBus().unregister(this);
}
getUiDelegate().destory();
}
示例7: onCreateViewLazy
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
protected void onCreateViewLazy(Bundle savedInstanceState) {
super.onCreateViewLazy(savedInstanceState);
if (getLayoutId() > 0) {
setContentView(getLayoutId());
unbinder = KnifeKit.bind(this, getRealRootView());
}
if (useEventBus()) {
BusFactory.getBus().register(this);
}
setListener();
initData(savedInstanceState);
}
示例8: onDestroyView
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
public void onDestroyView() {
super.onDestroyView();
BusFactory.getBus().unregister(this);
getUiDelegate().destory();
}
示例9: onStop
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
protected void onStop() {
super.onStop();
BusFactory.getBus().unregister(this);
}
示例10: initData
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
public void initData(Bundle savedInstanceState) {
initToolbar();
BusFactory.getBus().post(new Event.TestEvent("EventBus测试"));
}
示例11: onDestroy
import cn.droidlover.xdroid.event.BusFactory; //导入依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
BusFactory.getBus().unregister(this);
getUiDelegate().destory();
}