-
- All Implemented Interfaces:
-
androidx.datastore.core.DataStore
public final class WearLocalDataStore<T extends Object> implements DataStore<T>
-
-
Field Summary
Fields Modifier and Type Field Description private final DataClientdataClientprivate final Flow<T>data
-
Constructor Summary
Constructors Constructor Description WearLocalDataStore(WearDataLayerRegistry wearDataLayerRegistry, SharingStarted started, CoroutineScope coroutineScope, Serializer<T> serializer, String path)
-
Method Summary
Modifier and Type Method Description final DataClientgetDataClient()Flow<T>getData()TupdateData(SuspendFunction1<T, T> transform)-
-
Constructor Detail
-
WearLocalDataStore
WearLocalDataStore(WearDataLayerRegistry wearDataLayerRegistry, SharingStarted started, CoroutineScope coroutineScope, Serializer<T> serializer, String path)
-
-
Method Detail
-
getDataClient
final DataClient getDataClient()
-
updateData
T updateData(SuspendFunction1<T, T> transform)
-
-
-
-