- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
@Override protected void onStart() { super.onStart(); if (useEventBus()) { BusFactory.getBus().register(this); } }
@Override public void onDestroyView() { super.onDestroyView(); BusFactory.getBus().unregister(this); getUiDelegate().destory(); }
@Override protected void onDestroy() { super.onDestroy(); BusFactory.getBus().unregister(this); getUiDelegate().destory(); } }
@Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (useEventBus()) { BusFactory.getBus().register(this); } setListener(); initData(savedInstanceState); }
@Override public void initData(Bundle savedInstanceState) { initToolbar(); BusFactory.getBus().post(new Event.TestEvent("EventBus测试")); }
@Override protected void onDestoryLazy() { super.onDestoryLazy(); if (useEventBus()) { BusFactory.getBus().unregister(this); } getUiDelegate().destory(); }
@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); }