android.support.v4.content.Loader.isStarted()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(140)

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

Loader.isStarted介绍

[英]Return whether this load has been started. That is, its #startLoading()has been called and no calls to #stopLoading() or #reset() have yet been made.
[中]返回此加载是否已启动。也就是说,它的#startLoading()已被调用,但尚未调用#stopLoading()或#reset()。

代码示例

代码示例来源:origin: k9mail/k-9

private boolean hasLoadingAttachments() {
  for (Attachment attachment : attachments.values()) {
    Loader loader = loaderManager.getLoader(attachment.loaderId);
    if (loader != null && loader.isStarted()) {
      return true;
    }
  }
  return false;
}

代码示例来源:origin: square/assertj-android

public S isStarted() {
 isNotNull();
 assertThat(actual.isStarted()) //
   .overridingErrorMessage("Expected to be started but was not started.") //
   .isTrue();
 return myself;
}

代码示例来源:origin: square/assertj-android

public S isNotStarted() {
  isNotNull();
  assertThat(actual.isStarted()) //
    .overridingErrorMessage("Expected to not be started but was started.") //
    .isFalse();
  return myself;
 }
}

代码示例来源:origin: nglauber/dominando_android2

private boolean estaCarregando(int id) {
  Loader<?> loader = mLoaderManager.getLoader(id);
  if (loader != null && loader.isStarted()) {
    return true;
  }
  return false;
}
LoaderManager.LoaderCallbacks<List<Address>> mBuscaLocalCallback =

相关文章