protoDataStore
fun <T> protoDataStore(path: String, coroutineScope: CoroutineScope, serializer: Serializer<T>, started: SharingStarted = SharingStarted.WhileSubscribed(5000)): DataStore<T>
Returns a local Proto DataStore for the given Proto structure.
Parameters
path
the path inside the data client namespace, of the form "/xyz/123"
coroutineScope
the coroutine scope used for the internal SharedFlow.
serializer
the data store Serializer
started
the SharingStarted mode for the internal SharedFlow.