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
76 * @return Returns a reference to the same Editor object, so you can
79 Editor putString(String key, String value);
82 * Set a set of String values in the preferences editor, to be written
87 * @return Returns a reference to the same Editor object, so you can
90 Editor putStringSet(String key, Set<String> values);
93 * Set an int value in the preferences editor, to be written back once
99 * @return Returns a reference to the same Editor object, so you can
102 Editor putInt(String key, int value);
105 * Set a long value in the preferences editor, to be written back once
111 * @return Returns a reference to the same Editor object, so you can
114 Editor putLong(String key, long value);
117 * Set a float value in the preferences editor, to be written back once
123 * @return Returns a reference to the same Editor object, so you can
126 Editor putFloat(String key, float value);
129 * Set a boolean value in the preferences editor, to be written back
135 * @return Returns a reference to the same Editor object, so you can
138 Editor putBoolean(String key, boolean value);
141 * Mark in the editor that a preference value should be removed, which
147 * or after put methods on this editor.
151 * @return Returns a reference to the same Editor object, so you can
154 Editor remove(String key);
157 * Mark in the editor to remove <em>all</em> values from the
159 * will be any that you have defined in this editor.
163 * or after put methods on this editor.
165 * @return Returns a reference to the same Editor object, so you can
168 Editor clear();
171 * Commit your preferences changes back from this Editor to the
189 * Commit your preferences changes back from this Editor to the
202 * any failures. If another editor on this
218 * <p class='note'>The SharedPreferences.Editor interface
339 * Create a new Editor for these preferences, through which you can make
343 * <p>Note that you <em>must</em> call {@link Editor#commit} to have any
344 * changes you perform in the Editor actually show up in the
347 * @return Returns a new instance of the {@link Editor} interface, allowing
350 Editor edit();