# ContentPager.ContentCallback

Artifact: [androidx.contentpager:contentpager](https://developer.android.com/jetpack/androidx/releases/contentpager) [View Source](https://cs.android.com/search?q=file:androidx/contentpager/content/ContentPager.java+class:androidx.contentpager.content.ContentPager.ContentCallback) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/contentpager#1.0.0)

*** ** * ** ***


```
public interface ContentPager.ContentCallback
```

<br />

*** ** * ** ***

Callback by which a client receives results of a query.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `@https://developer.android.com/reference/androidx/annotation/MainThread https://developer.android.com/reference/androidx/contentpager/content/ContentPager.ContentCallback#onCursorReady(androidx.contentpager.content.Query,android.database.Cursor)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/contentpager/content/Query query, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/database/Cursor.html cursor)` Called when paged cursor is ready. |

## Public methods

### onCursorReady

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/contentpager#1.0.0)

```
@MainThread
abstract void onCursorReady(@NonNull Query query, @Nullable Cursor cursor)
```

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

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/contentpager/content/Query query` | The query having been executed. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/database/Cursor.html cursor` | the query results. Null if query couldn't be executed. |