PreferencesManager

@Singleton
class PreferencesManager @Inject constructor(val context: Context)

Manager class for dataStore

Parameters

context

application context attendanceSortFLow flow of Sort flow of FilterPreferences

See also

Constructors

Link copied to clipboard
@Inject
constructor(context: Context)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun clearAll()

Clear all data

Link copied to clipboard
suspend fun updateCgpa(cgpa: Cgpa)

Update default Cgpa

Link copied to clipboard
suspend fun updateCourse(value: String)

Update default percentage

Link copied to clipboard
suspend fun updatePercentage(value: Int)

Update default percentage

Link copied to clipboard
suspend fun updateSem(value: String)

Update default sem

Link copied to clipboard
suspend fun updateSort(sort: Sort)

Update default sort