# CursorWindowCompat

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/database/CursorWindowCompat "View this page in Java")

<br />

```
class CursorWindowCompat
```

<br />

*** ** * ** ***

Helper for accessing features in[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow.html)

## Summary

|                                           ### Public functions                                           |
|----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[CursorWindow](https://developer.android.com/reference/android/database/CursorWindow.html) | [create](https://developer.android.com/reference/kotlin/androidx/core/database/CursorWindowCompat#create(java.lang.String,long))`(name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?, windowSizeBytes: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Creates a CursorWindow of the specified size. |

## Public functions

### create

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

```
java-static fun create(name: String?, windowSizeBytes: Long): CursorWindow
```

Creates a CursorWindow of the specified size.

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