interface WriteScope<T : Any?> : ReadScope


The scope used for a write transaction.

Summary

Public functions

suspend Unit
writeData(value: T)

Writes the data to the underlying storage.

Inherited functions

From androidx.datastore.core.Closeable
Unit

Closes the specified resource.

From androidx.datastore.core.ReadScope
suspend T

Read the data from the underlying storage.

Public functions

writeData

Added in 1.1.0
suspend fun writeData(value: T): Unit

Writes the data to the underlying storage.