com.hipipal.texteditor.common
Class WidgetPrefs
java.lang.Object
com.hipipal.texteditor.common.WidgetPrefs
public class WidgetPrefs
- extends java.lang.Object
Method Summary |
static void |
delete(android.content.Context context,
int widgetId)
Delete the data associated with a widget ID |
boolean |
load(android.content.Context context,
int widgetId)
Loads the widget prefs from the shared preferences |
void |
store(android.content.Context context,
int widgetId)
Store this widget prefs in the shared preferences |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WIDGET_PREFERENCES
public static final java.lang.String WIDGET_PREFERENCES
- See Also:
- Constant Field Values
WIDGET_TARGET_PATH
public static final java.lang.String WIDGET_TARGET_PATH
- See Also:
- Constant Field Values
WIDGET_READ_ONLY
public static final java.lang.String WIDGET_READ_ONLY
- See Also:
- Constant Field Values
WIDGET_PRESENT_KEY
public static final java.lang.String WIDGET_PRESENT_KEY
- See Also:
- Constant Field Values
mTargetPath
public java.lang.String mTargetPath
mReadOnly
public boolean mReadOnly
WidgetPrefs
public WidgetPrefs()
load
public boolean load(android.content.Context context,
int widgetId)
- Loads the widget prefs from the shared preferences
- Parameters:
context
- the current contextwidgetId
- this widget id
- Returns:
- if the widget is still present
store
public void store(android.content.Context context,
int widgetId)
- Store this widget prefs in the shared preferences
- Parameters:
context
- the current contextwidgetId
- this widget id
delete
public static void delete(android.content.Context context,
int widgetId)
- Delete the data associated with a widget ID
- Parameters:
context
- the current contextwidgetId
- the id to delete