android.support.v4.app.Fragment.onDestroy()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(200)

本文整理了Java中android.support.v4.app.Fragment.onDestroy()方法的一些代码示例,展示了Fragment.onDestroy()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Fragment.onDestroy()方法的具体详情如下:
包路径:android.support.v4.app.Fragment
类名称:Fragment
方法名:onDestroy

Fragment.onDestroy介绍

[英]Called when the fragment is no longer in use. This is called after #onStop() and before #onDetach().
[中]当片段不再使用时调用。这在#onStop()之后和#onDetach()之前调用。

代码示例

代码示例来源:origin: scwang90/SmartRefreshLayout

@Override
public void onDestroy() {
  super.onDestroy();
  mNestedPager = false;
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@Override
public void onDestroy() {
 super.onDestroy();
 _storedIntsDisposable.dispose();
}

代码示例来源:origin: CarGuo/GSYVideoPlayer

@Override
public void onDestroy() {
  super.onDestroy();
  GSYVideoManager.releaseAllVideos();
}

代码示例来源:origin: JessYanCoding/MVPArms

@Override
public void onDestroy() {
  super.onDestroy();
  if (mPresenter != null) mPresenter.onDestroy();//释放资源
  this.mPresenter = null;
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@Override
public void onDestroy() {
 super.onDestroy();
 _lifeCycleStream.onComplete();
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@Override
public void onDestroy() {
 super.onDestroy();
 _disposables.dispose();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onDestroy() {
 if (task != null) {
  task.cancel(false);
 }
 super.onDestroy();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onDestroy() {
 if (sub!=null && !sub.isDisposed()) {
  sub.dispose();
 }
 super.onDestroy();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onDestroy() {
 if (task!=null) {
  task.cancel(false);
 }
 super.onDestroy();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onDestroy() {
 disconnect();
 super.onDestroy();
}

代码示例来源:origin: facebook/facebook-android-sdk

@Override
  public void onDestroy() {
    super.onDestroy();
    if (inAppBillingService != null) {
      context.unbindService(serviceConnection);
    }
  }
}

代码示例来源:origin: facebook/facebook-android-sdk

@Override
public void onDestroy() {
  super.onDestroy();
  accessTokenTracker.stopTracking();
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onDestroy() {
 disconnect();
 super.onDestroy();
}

代码示例来源:origin: bumptech/glide

@Override
public void onDestroy() {
 super.onDestroy();
 lifecycle.onDestroy();
 unregisterFragmentWithRoot();
}

代码示例来源:origin: aa112901/remusic

@Override
  public void onDestroy() {
    super.onDestroy();
    Log.e("roundfragment"," id = " + hashCode());
    if (animator != null) {
      animator = null;
      Log.e("roundfragment"," id = " + hashCode() + "  , animator destroy");
    }
//        RefWatcher refWatcher = MainApplication.getRefWatcher(getActivity());
//        refWatcher.watch(this);
  }

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onDestroy() {
 if (task!=null) {
  task.cancel(false);
 }
 current.close();
 db.close();
 super.onDestroy();
}

代码示例来源:origin: kaushikgopal/RxJava-Android-Samples

@Override
 public void onDestroy() {
  super.onDestroy();
  RefWatcher refWatcher = MyApp.getRefWatcher();
  refWatcher.watch(this);
 }
}

代码示例来源:origin: commonsguy/cw-omnibus

@Override
public void onDestroy() {
 if (binding!=null) {
  appContext.unbindService(this);
 }
 disconnect();
 super.onDestroy();
}

代码示例来源:origin: chentao0707/SimplifyReader

@Override
public void onDestroy() {
  super.onDestroy();
  if (isBindEventBusHere()) {
    EventBus.getDefault().unregister(this);
  }
}

代码示例来源:origin: TeamNewPipe/NewPipe

@Override
public void onDestroy() {
  super.onDestroy();
  RefWatcher refWatcher = App.getRefWatcher(getActivity());
  if (refWatcher != null) refWatcher.watch(this);
}

相关文章

微信公众号

最新文章

更多

Fragment类方法