ContentPager.QueryRunner.Callback


public interface ContentPager.QueryRunner.Callback


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

Summary

Public methods

abstract void

Called on main thread when query has completed.

abstract @Nullable Cursor

Method called on background thread where actual query is executed.

Public methods

onQueryFinished

Added in 1.0.0
abstract void onQueryFinished(@NonNull Query query, @Nullable Cursor cursor)

Called on main thread when query has completed.

Parameters
@NonNull Query query

The completed query.

@Nullable Cursor cursor

The results in Cursor form. Null if not successfully completed.

runQueryInBackground

Added in 1.0.0
abstract @Nullable Cursor runQueryInBackground(@NonNull Query query)

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

Parameters
@NonNull Query query

The query to be executed.