# ReadScope

Artifact: [androidx.datastore:datastore-core](https://developer.android.com/jetpack/androidx/releases/datastore) [View Source](https://cs.android.com/search?q=file:androidx/datastore/core/StorageConnection.kt+class:androidx.datastore.core.ReadScope) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/datastore#1.1.0)

*** ** * ** ***


```
public interface ReadScope<T extends Object> extends Closeable
```

<br />

Known direct subclasses [WriteScope](https://developer.android.com/reference/androidx/datastore/core/WriteScope)

|---|---|
| `https://developer.android.com/reference/androidx/datastore/core/WriteScope` | The scope used for a write transaction. |

*** ** * ** ***

The scope used for a read transaction.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull T` | `https://developer.android.com/reference/androidx/datastore/core/ReadScope#readData()()` Read the data from the underlying storage. |

| ### Inherited methods |
|---|
| From [androidx.datastore.core.Closeable](https://developer.android.com/reference/androidx/datastore/core/Closeable) |---|---| | `abstract void` | `https://developer.android.com/reference/androidx/datastore/core/Closeable#close()()` Closes the specified resource. | |

## Public methods

### readData

```
abstract @NonNull T readData()
```

Read the data from the underlying storage.