Here are the examples of the java api android.content.AsyncTaskLoader taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
18
Source : AsyncTaskLoaderSubject.java
with Apache License 2.0
from pkware
with Apache License 2.0
from pkware
/**
* Propositions for {@link AsyncTaskLoader} subjects.
*/
public clreplaced AsyncTaskLoaderSubject extends AbstractLoaderSubject<AsyncTaskLoader> {
@Nullable
private AsyncTaskLoader actual;
public AsyncTaskLoaderSubject(@Nonnull FailureMetadata failureMetadata, @Nullable AsyncTaskLoader actual) {
super(failureMetadata, actual);
this.actual = actual;
}
@TargetApi(JELLY_BEAN)
public void hasLoadInBackgroundCancelled() {
check("isLoadInBackgroundCanceled()").that(actual.isLoadInBackgroundCanceled()).isTrue();
}
@TargetApi(JELLY_BEAN)
public void hasLoadInBackgroundNotCancelled() {
check("isLoadInBackgroundCanceled()").that(actual.isLoadInBackgroundCanceled()).isFalse();
}
}