Home | History | Annotate | Download | only in content

Lines Matching refs:Editor

26  * Modifications to the preferences must go through an {@link Editor} object
63 * object. All changes you make in an editor are batched, and not copied
67 public interface Editor {
69 * Set a String value in the preferences editor, to be written back once
75 * @return Returns a reference to the same Editor object, so you can
78 Editor putString(String key, String value);
81 * Set a set of String values in the preferences editor, to be written
86 * @return Returns a reference to the same Editor object, so you can
89 Editor putStringSet(String key, Set<String> values);
92 * Set an int value in the preferences editor, to be written back once
98 * @return Returns a reference to the same Editor object, so you can
101 Editor putInt(String key, int value);
104 * Set a long value in the preferences editor, to be written back once
110 * @return Returns a reference to the same Editor object, so you can
113 Editor putLong(String key, long value);
116 * Set a float value in the preferences editor, to be written back once
122 * @return Returns a reference to the same Editor object, so you can
125 Editor putFloat(String key, float value);
128 * Set a boolean value in the preferences editor, to be written back
134 * @return Returns a reference to the same Editor object, so you can
137 Editor putBoolean(String key, boolean value);
140 * Mark in the editor that a preference value should be removed, which
146 * or after put methods on this editor.
150 * @return Returns a reference to the same Editor object, so you can
153 Editor remove(String key);
156 * Mark in the editor to remove <em>all</em> values from the
158 * will be any that you have defined in this editor.
162 * or after put methods on this editor.
164 * @return Returns a reference to the same Editor object, so you can
167 Editor clear();
170 * Commit your preferences changes back from this Editor to the
188 * Commit your preferences changes back from this Editor to the
201 * any failures. If another editor on this
217 * <p class='note'>The SharedPreferences.Editor interface
330 * Create a new Editor for these preferences, through which you can make
334 * <p>Note that you <em>must</em> call {@link Editor#commit} to have any
335 * changes you perform in the Editor actually show up in the
338 * @return Returns a new instance of the {@link Editor} interface, allowing
341 Editor edit();