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

WriteScope


The scope used for a write transaction.

Summary

Public functions

suspend Unit
writeData(value: T)

Writes the data to the underlying storage.

Cmn

Inherited functions

From androidx.datastore.core.Closeable
Unit

Closes the specified resource.

Cmn
From androidx.datastore.core.ReadScope
suspend T

Read the data from the underlying storage.

Cmn

Public functions

writeData

suspend fun writeData(value: T): Unit

Writes the data to the underlying storage.