DataStoreModule

@Module
object DataStoreModule

A Module to provide DataStore instances. This module is mainly responsible for creating and configuring the DataStore<Preferences> instance.

Functions

Link copied to clipboard
@Provides
@Singleton
fun provideDataStore(appContext: Context): DataStore<Preferences>

Provide a DataStore<Preferences> instance.

Link copied to clipboard

Provide a PreferencesDataStore instance.