ContentCallback

interface ContentCallback
androidx.contentpager.content.ContentPager.ContentCallback

Callback by which a client receives results of a query.

Summary

Public methods

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

Called when paged cursor is ready.

Public methods

onCursorReady

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

Called when paged cursor is ready. Null, if query failed.

Parameters
query Query: The query having been executed.
cursor Cursor?: the query results. Null if query couldn't be executed.