It's happening now, watch the livestream.

Callback

interface 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 Unit
onQueryFinished(@NonNull query: Query, @Nullable cursor: Cursor?)

Called on main thread when query has completed.

abstract Cursor?
runQueryInBackground(@NonNull query: Query)

Method called on background thread where actual query is executed.

Public methods

onQueryFinished

abstract fun onQueryFinished(@NonNull query: Query, @Nullable cursor: Cursor?): Unit

Called on main thread when query has completed.

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

runQueryInBackground

@Nullable abstract fun runQueryInBackground(@NonNull 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.