public interface

ContentPager.QueryRunner.Callback

 androidx.contentpager.content.ContentPager.QueryRunner.Callback

Overview

Callback that receives a cursor once a query as been executed on the Runner.

Summary

Methods
public voidonQueryFinished(Query query, Cursor cursor)

Called on main thread when query has completed.

public CursorrunQueryInBackground(Query query)

Method called on background thread where actual query is executed.

Methods

public Cursor runQueryInBackground(Query query)

Method called on background thread where actual query is executed. This is provided by ContentPager.

Parameters:

query: The query to be executed.

public void onQueryFinished(Query query, Cursor cursor)

Called on main thread when query has completed.

Parameters:

query: The completed query.
cursor: The results in Cursor form. Null if not successfully completed.