providePreferencesDataStore

@Singleton
@Provides
fun providePreferencesDataStore(appContext: Context, ioDispatcher: CoroutineDispatcher): DataStore<UserDataPreferences>

Provides the DataStore for UserDataPreferences.

Return

The DataStore for UserDataPreferences.

Parameters

appContext

The application Context.

ioDispatcher

The CoroutineDispatcher for performing I/O operations.