Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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.