provideDataStore

@Provides
@Singleton
fun provideDataStore(appContext: Context): DataStore<Preferences>

Provide a DataStore<Preferences> instance.

Return

a DataStore<Preferences> instance.

Parameters

appContext

the application context.