IDataStoreOwner
interface IDataStoreOwner
IDataStoreOwner. It holds DataStore and provides some expansion methods.
// Here is a example
object ThemeDs: IDataStoreOwner {
override val dataStore: DataStore<Preferences> =
ContextHelper.getAppContext().dataStore
val theme by boolean(false)
}
Content copied to clipboard
Since
0.5.6