android.content.AsyncTaskLoader.onCanceled()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(105)

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

AsyncTaskLoader.onCanceled介绍

暂无

代码示例

代码示例来源:origin: qiubiteme/android_api_demos

/**
 * Handles a request to cancel a load.
 */
@Override public void onCanceled(List<AppEntry> apps) {
  super.onCanceled(apps);
  // At this point we can release the resources associated with 'apps'
  // if needed.
  onReleaseResources(apps);
}

代码示例来源:origin: li2/learning-android-open-source

/**
 * Handles a request to cancel a load.
 */
@Override public void onCanceled(List<AppEntry> apps) {
  super.onCanceled(apps);
  // At this point we can release the resources associated with 'apps'
  // if needed.
  onReleaseResources(apps);
}

代码示例来源:origin: gearvrf/GearVRf-Demos

/**
 * Handles a request to cancelTimer a load.
 */
@Override
public void onCanceled(T data) {
  super.onCanceled(data);
  // At this point we can release the resources associated with 'data'
  // if needed.
  onReleaseResources(data);
}

代码示例来源:origin: ashishbhandari/RetailStore

/**
 * Handles a request to cancel a load.
 */
@Override
public void onCanceled(List<Category> apps) {
  super.onCanceled(apps);
  // At this point we can release the resources associated with 'apps'
  // if needed.
  onReleaseResources(apps);
}

代码示例来源:origin: AndroidHardening/PdfViewer

@Override
public void onCanceled(List<CharSequence> properties) {
  super.onCanceled(properties);
  onReleaseResources();
}

代码示例来源:origin: geniusgithub/AndroidDialer

@Override
public void onCanceled(Cursor cursor) {
  super.onCanceled(cursor);
  if (mObserver != null) {
    mContext.getContentResolver().unregisterContentObserver(mObserver);
    mObserver = null;
  }
  /** The load has been canceled, so we should release the resources associated with 'data'.*/
  releaseResources(cursor);
}

相关文章