{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ReadScope

Known direct subclasses
WriteScope

The scope used for a write transaction.


The scope used for a read transaction.

Summary

Public functions

suspend T

Read the data from the underlying storage.

Cmn

Inherited functions

From androidx.datastore.core.Closeable
Unit

Closes the specified resource.

Cmn

Public functions

readData

suspend fun readData(): T

Read the data from the underlying storage.