ContentPager.QueryRunner.Callback


interface ContentPager.QueryRunner.Callback


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

Summary

Public functions

Unit
onQueryFinished(query: Query, cursor: Cursor?)

Called on main thread when query has completed.

Cursor?

Method called on background thread where actual query is executed.

Public functions

onQueryFinished

Added in 1.0.0
fun onQueryFinished(query: Query, cursor: Cursor?): Unit

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 1.0.0
fun runQueryInBackground(query: Query): Cursor?

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

Parameters
query: Query

The query to be executed.