Home | History | Annotate | Download | only in content

Lines Matching defs:Editor

28  * Modifications to the preferences must go through an {@link Editor} object
36 * {@link Editor#commit()} and {@link Editor#apply()}.
70 * object. All changes you make in an editor are batched, and not copied
74 public interface Editor {
76 * Set a String value in the preferences editor, to be written back once
84 * @return Returns a reference to the same Editor object, so you can
87 Editor putString(String key, @Nullable String value);
90 * Set a set of String values in the preferences editor, to be written
97 * @return Returns a reference to the same Editor object, so you can
100 Editor putStringSet(String key, @Nullable Set<String> values);
103 * Set an int value in the preferences editor, to be written back once
109 * @return Returns a reference to the same Editor object, so you can
112 Editor putInt(String key, int value);
115 * Set a long value in the preferences editor, to be written back once
121 * @return Returns a reference to the same Editor object, so you can
124 Editor putLong(String key, long value);
127 * Set a float value in the preferences editor, to be written back once
133 * @return Returns a reference to the same Editor object, so you can
136 Editor putFloat(String key, float value);
139 * Set a boolean value in the preferences editor, to be written back
145 * @return Returns a reference to the same Editor object, so you can
148 Editor putBoolean(String key, boolean value);
151 * Mark in the editor that a preference value should be removed, which
157 * or after put methods on this editor.
161 * @return Returns a reference to the same Editor object, so you can
164 Editor remove(String key);
167 * Mark in the editor to remove <em>all</em> values from the
169 * will be any that you have defined in this editor.
173 * or after put methods on this editor.
175 * @return Returns a reference to the same Editor object, so you can
178 Editor clear();
181 * Commit your preferences changes back from this Editor to the
199 * Commit your preferences changes back from this Editor to the
212 * any failures. If another editor on this
228 * <p class='note'>The SharedPreferences.Editor interface
351 * Create a new Editor for these preferences, through which you can make
355 * <p>Note that you <em>must</em> call {@link Editor#commit} to have any
356 * changes you perform in the Editor actually show up in the
359 * @return Returns a new instance of the {@link Editor} interface, allowing
362 Editor edit();