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.Callback
public
static
interface
ContentPager.QueryRunner.Callback
android.support.content.ContentPager.QueryRunner.Callback |
Callback that receives a cursor once a query as been executed on the Runner.
Summary
Public methods | |
---|---|
abstract
void
|
onQueryFinished(Query query, Cursor cursor)
Called on main thread when query has completed. |
abstract
Cursor
|
runQueryInBackground(Query query)
Method called on background thread where actual query is executed. |
Public methods
onQueryFinished
added in version 27.1.0
void onQueryFinished (Query query, Cursor cursor)
Called on main thread when query has completed.
Parameters | |
---|---|
query |
Query : The completed query. |
cursor |
Cursor : The results in Cursor form. Null if not successfully completed.
|
runQueryInBackground
added in version 27.1.0
Cursor runQueryInBackground (Query query)
Method called on background thread where actual query is executed. This is provided by ContentPager.
Parameters | |
---|---|
query |
Query : The query to be executed.
|
Returns | |
---|---|
Cursor |