Home | History | Annotate | Download | only in content

Lines Matching refs:Editor

26  * Modifications to the preferences must go through an {@link Editor} object
64 * object. All changes you make in an editor are batched, and not copied
68 public interface Editor {
70 * Set a String value in the preferences editor, to be written back once
78 * @return Returns a reference to the same Editor object, so you can
81 Editor putString(String key, String value);
84 * Set a set of String values in the preferences editor, to be written
91 * @return Returns a reference to the same Editor object, so you can
94 Editor putStringSet(String key, Set<String> values);
97 * Set an int value in the preferences editor, to be written back once
103 * @return Returns a reference to the same Editor object, so you can
106 Editor putInt(String key, int value);
109 * Set a long value in the preferences editor, to be written back once
115 * @return Returns a reference to the same Editor object, so you can
118 Editor putLong(String key, long value);
121 * Set a float value in the preferences editor, to be written back once
127 * @return Returns a reference to the same Editor object, so you can
130 Editor putFloat(String key, float value);
133 * Set a boolean value in the preferences editor, to be written back
139 * @return Returns a reference to the same Editor object, so you can
142 Editor putBoolean(String key, boolean value);
145 * Mark in the editor that a preference value should be removed, which
151 * or after put methods on this editor.
155 * @return Returns a reference to the same Editor object, so you can
158 Editor remove(String key);
161 * Mark in the editor to remove <em>all</em> values from the
163 * will be any that you have defined in this editor.
167 * or after put methods on this editor.
169 * @return Returns a reference to the same Editor object, so you can
172 Editor clear();
175 * Commit your preferences changes back from this Editor to the
193 * Commit your preferences changes back from this Editor to the
206 * any failures. If another editor on this
222 * <p class='note'>The SharedPreferences.Editor interface
343 * Create a new Editor for these preferences, through which you can make
347 * <p>Note that you <em>must</em> call {@link Editor#commit} to have any
348 * changes you perform in the Editor actually show up in the
351 * @return Returns a new instance of the {@link Editor} interface, allowing
354 Editor edit();