Home | History | Annotate | Download | only in content

Lines Matching defs:Editor

28  * Modifications to the preferences must go through an {@link Editor} object
65 * object. All changes you make in an editor are batched, and not copied
69 public interface Editor {
71 * Set a String value in the preferences editor, to be written back once
79 * @return Returns a reference to the same Editor object, so you can
82 Editor putString(String key, @Nullable String value);
85 * Set a set of String values in the preferences editor, to be written
92 * @return Returns a reference to the same Editor object, so you can
95 Editor putStringSet(String key, @Nullable Set<String> values);
98 * Set an int value in the preferences editor, to be written back once
104 * @return Returns a reference to the same Editor object, so you can
107 Editor putInt(String key, int value);
110 * Set a long value in the preferences editor, to be written back once
116 * @return Returns a reference to the same Editor object, so you can
119 Editor putLong(String key, long value);
122 * Set a float value in the preferences editor, to be written back once
128 * @return Returns a reference to the same Editor object, so you can
131 Editor putFloat(String key, float value);
134 * Set a boolean value in the preferences editor, to be written back
140 * @return Returns a reference to the same Editor object, so you can
143 Editor putBoolean(String key, boolean value);
146 * Mark in the editor that a preference value should be removed, which
152 * or after put methods on this editor.
156 * @return Returns a reference to the same Editor object, so you can
159 Editor remove(String key);
162 * Mark in the editor to remove <em>all</em> values from the
164 * will be any that you have defined in this editor.
168 * or after put methods on this editor.
170 * @return Returns a reference to the same Editor object, so you can
173 Editor clear();
176 * Commit your preferences changes back from this Editor to the
194 * Commit your preferences changes back from this Editor to the
207 * any failures. If another editor on this
223 * <p class='note'>The SharedPreferences.Editor interface
346 * Create a new Editor for these preferences, through which you can make
350 * <p>Note that you <em>must</em> call {@link Editor#commit} to have any
351 * changes you perform in the Editor actually show up in the
354 * @return Returns a new instance of the {@link Editor} interface, allowing
357 Editor edit();