Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
added in version 27.1.0
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