public abstract class GlobalSetting extends ContentObserver implements Listenable
Constructor and Description |
---|
GlobalSetting(Context context,
Handler handler,
String settingName) |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
protected abstract void |
handleValueChanged(int value) |
void |
onChange(boolean selfChange)
This method is called when a content change occurs.
|
void |
setListening(boolean listening) |
void |
setValue(int value) |
deliverSelfNotifications, dispatchChange, dispatchChange, getContentObserver, onChange, onChange, releaseContentObserver
protected abstract void handleValueChanged(int value)
public int getValue()
public void setValue(int value)
public void setListening(boolean listening)
setListening
in interface Listenable
public void onChange(boolean selfChange)
ContentObserver
Subclasses should override this method to handle content changes.
onChange
in class ContentObserver
selfChange
- True if this is a self-change notification.