added in version 27.1.0
belongs to Maven artifact com.android.support:support-content:28.0.0-alpha1
belongs to Maven artifact com.android.support:support-content:28.0.0-alpha1
ContentPager.QueryRunner
public
static
interface
ContentPager.QueryRunner
android.support.content.ContentPager.QueryRunner |
![]() |
Implementations of this interface provide the mechanism for execution of queries off the UI thread.
Summary
Nested classes | |
---|---|
interface |
ContentPager.QueryRunner.Callback
Callback that receives a cursor once a query as been executed on the Runner. |
Public methods | |
---|---|
abstract
void
|
cancel(Query query)
Attempt to cancel a (presumably) running query. |
abstract
boolean
|
isRunning(Query query)
|
abstract
void
|
query(Query query, ContentPager.QueryRunner.Callback callback)
Execute a query. |
Public methods
cancel
added in version 27.1.0
void cancel (Query query)
Attempt to cancel a (presumably) running query.
Parameters | |
---|---|
query |
Query : The query in question.
|
isRunning
added in version 27.1.0
boolean isRunning (Query query)
Parameters | |
---|---|
query |
Query : The query in question. |
Returns | |
---|---|
boolean |
true if the query is already running. |
query
added in version 27.1.0
void query (Query query, ContentPager.QueryRunner.Callback callback)
Execute a query.
Parameters | |
---|---|
query |
Query : The query that will be run. This value should be handed
back to the callback when ready to run in the background. |
callback |
ContentPager.QueryRunner.Callback : The callback that should be called to both execute
the query (in the background) and to receive the results
(in the foreground).
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-04-11 UTC.",
"state": ""
}