public interface Prefs extends Service
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
String |
getPref(String section,
String key,
PrefsProtos.GetPrefArg.Mode mode)
Gets a preference from the operaprefs.ini from a specific section.
|
List<PrefsProtos.Pref> |
listPrefs(Boolean sort,
String section)
Lists the preferences in a specific section from operaprefs.ini.
|
void |
setPrefs(String section,
String key,
String value)
Sets a preference in operaprefs.ini in a specific section.
|
getServiceName, getServiceVersion, initstatic final String SERVICE_NAME
String getPref(String section, String key, PrefsProtos.GetPrefArg.Mode mode)
section - section to get the preference fromkey - key in the sectionmode - get the current or default setting of the preferenceList<PrefsProtos.Pref> listPrefs(Boolean sort, String section)
sort - if true returned list is sortedsection - list prefs in this sectionCopyright © 2012. All Rights Reserved.