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 |
Cursor?: The results in Cursor form. Null if not successfully completed. |