本文整理匯總了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();
}