public abstract class SecureSetting extends ContentObserver implements Listenable
Constructor and Description |
---|
SecureSetting(Context context,
Handler handler,
String settingName) |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
protected abstract void |
handleValueChanged(int value,
boolean observedChange) |
void |
onChange(boolean selfChange)
This method is called when a content change occurs.
|
void |
setListening(boolean listening) |
void |
setUserId(int userId) |
void |
setValue(int value) |
deliverSelfNotifications, dispatchChange, dispatchChange, getContentObserver, onChange, onChange, releaseContentObserver
protected abstract void handleValueChanged(int value, boolean observedChange)
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.public void setUserId(int userId)