public class

SettingsHelper

extends Object
java.lang.Object
   ↳ lineageos.preference.SettingsHelper

Summary

Nested Classes
interface SettingsHelper.OnSettingsChangeListener  
Public Methods
synchronized static SettingsHelper get(Context context)
boolean getBoolean(Uri settingsUri, boolean def)
int getInt(Uri settingsUri, int def)
String getString(Uri settingsUri)
void putBoolean(Uri settingsUri, boolean value)
void putInt(Uri settingsUri, int value)
void putString(Uri settingsUri, String value)
void startWatching(SettingsHelper.OnSettingsChangeListener listener, Uri... settingsUris)
void stopWatching(SettingsHelper.OnSettingsChangeListener listener)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static synchronized SettingsHelper get (Context context)

added in API level 8

Parameters
context Context
Returns
SettingsHelper

public boolean getBoolean (Uri settingsUri, boolean def)

added in API level 8

Parameters
settingsUri Uri
def boolean
Returns
boolean

public int getInt (Uri settingsUri, int def)

added in API level 8

Parameters
settingsUri Uri
def int
Returns
int

public String getString (Uri settingsUri)

added in API level 8

Parameters
settingsUri Uri
Returns
String

public void putBoolean (Uri settingsUri, boolean value)

added in API level 8

Parameters
settingsUri Uri
value boolean

public void putInt (Uri settingsUri, int value)

added in API level 8

Parameters
settingsUri Uri
value int

public void putString (Uri settingsUri, String value)

added in API level 8

Parameters
settingsUri Uri
value String

public void startWatching (SettingsHelper.OnSettingsChangeListener listener, Uri... settingsUris)

added in API level 8

Parameters
listener SettingsHelper.OnSettingsChangeListener
settingsUris Uri

public void stopWatching (SettingsHelper.OnSettingsChangeListener listener)

added in API level 8

Parameters
listener SettingsHelper.OnSettingsChangeListener