Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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 Query: the query results. Null if query couldn't be executed.