AbstractPrefsManager

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getPref(key: String, account: UserAccount): String
Returns the pref value for the specified key, for a user account.
Link copied to clipboard
open fun getPrefs(account: UserAccount): Map<String, String>
Returns all the prefs for a user account.
Link copied to clipboard
open fun reset(account: UserAccount)
Clears the stored prefs for the specified user.
Link copied to clipboard
open fun resetAll(): Boolean
Clears the stored prefs for all users.
Link copied to clipboard
open fun setPrefs(attribs: Map<String, String>, account: UserAccount)
open fun setPrefs(attribs: JSONObject, account: UserAccount)
Sets the prefs for the specified user account.