interface ReadScope<T : Any?> : Closeable

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.

Inherited functions

From androidx.datastore.core.Closeable
Unit

Closes the specified resource.

Public functions

readData

suspend fun readData(): T

Read the data from the underlying storage.