ContentPager.QueryRunner
public interface ContentPager.QueryRunner
LoaderQueryRunner |
A |
Implementations of this interface provide the mechanism for execution of queries off the UI thread.
Summary
Nested types |
|---|
public interface ContentPager.QueryRunner.CallbackCallback that receives a cursor once a query as been executed on the Runner. |
Public methods |
|
|---|---|
abstract void |
Attempt to cancel a (presumably) running query. |
abstract boolean |
|
abstract void |
query(Execute a query. |
Public methods
cancel
abstract void cancel(@NonNull Query query)
Attempt to cancel a (presumably) running query.
isRunning
abstract boolean isRunning(@NonNull Query query)
| Returns | |
|---|---|
boolean |
true if the query is already running. |
query
abstract void query(
@NonNull Query query,
@NonNull ContentPager.QueryRunner.Callback callback
)
Execute a query.
| Parameters | |
|---|---|
@NonNull Query query |
The query that will be run. This value should be handed back to the callback when ready to run in the background. |
@NonNull ContentPager.QueryRunner.Callback callback |
The callback that should be called to both execute the query (in the background) and to receive the results (in the foreground). |