public class Settings extends Object
Note this class is not thread safe and its methods should only be invoked from the UI thread
Modifier and Type | Field and Description |
---|---|
static String |
PREFER_STATIC_SHADOWS |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String key)
Returns the boolean preference for the given key.
|
static Settings |
getInstance(Context context)
Returns the singleton Settings instance.
|
boolean |
preferStaticShadows()
Returns true if static shadows are recommended.
|
void |
setBoolean(String key,
boolean value)
Sets the boolean preference for the given key.
|
public static final String PREFER_STATIC_SHADOWS
public static Settings getInstance(Context context)
public boolean preferStaticShadows()
public boolean getBoolean(String key)
public void setBoolean(String key, boolean value)