# CursorWindowCompat

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/database/CursorWindowCompat.java+class:androidx.core.database.CursorWindowCompat) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***


```
public final class CursorWindowCompat
```

<br />

*** ** * ** ***

Helper for accessing features in `https://developer.android.com/reference/android/database/CursorWindow.html`

## Summary

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/database/CursorWindow.html` | `https://developer.android.com/reference/androidx/core/database/CursorWindowCompat#create(java.lang.String,long)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html name, long windowSizeBytes)` Creates a CursorWindow of the specified size. |

## Public methods

### create

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

```
public static @NonNull CursorWindow create(@Nullable String name, long windowSizeBytes)
```

Creates a CursorWindow of the specified size.

Prior to Android P, this method will return a CursorWindow of size defined by the platform.