ContentPager.QueryRunner.Callback

public static interface ContentPager.QueryRunner.Callback

androidx.contentpager.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

public abstract 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

public abstract 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