Skip to content

Commit 239ad4b

Browse files
committed
removed doc for methods unsupported by both platforms
1 parent b5ebd92 commit 239ad4b

1 file changed

Lines changed: 0 additions & 75 deletions

File tree

README.md

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -55,78 +55,3 @@ Sample use:
5555
});
5656

5757

58-
### remove ###
59-
60-
In order to remove a key along with the value, you would call the remove method.
61-
62-
/**
63-
* Remove the key along with the value
64-
*
65-
* @param key
66-
*/
67-
remove(key, success, fail)
68-
69-
Sample use:
70-
71-
window.applicationPreferences.remove("myKey", function(value) {
72-
alert("Value removed!");
73-
}, function(error) {
74-
alert("Error! " + JSON.stringify(error));
75-
});
76-
77-
### clear ###
78-
79-
In order to remove all shared preferences, you would call the clear method.
80-
81-
/**
82-
* Clear all shared preferences
83-
*
84-
*/
85-
clear(success, fail)
86-
87-
Sample use:
88-
89-
window.applicationPreferences.clear(function() {
90-
alert("Cleared all preferences!");
91-
}, function(error) {
92-
alert("Error! " + JSON.stringify(error));
93-
});
94-
95-
### load ###
96-
97-
In order to get all the properties you can call the load method. The success callback of the load method will be called with a JSONObject which contains all the preferences.
98-
99-
/**
100-
* Get all the preference values.
101-
*
102-
*/
103-
load(success, fail)
104-
105-
Sample use:
106-
107-
window.applicationPreferences.load(function(prefs) {
108-
alert(JSON.stringify(prefs));
109-
}, function() {
110-
alert("Error! " + JSON.stringify(error));
111-
});
112-
113-
### show ###
114-
115-
If you want to load the PreferenceActivity of your application that displays all the preferences you can call the show method with the class name.
116-
117-
/**
118-
* Get all the preference values.
119-
*
120-
*/
121-
show(activity, success, fail)
122-
123-
Sample use:
124-
125-
function showPreferenceActivity() {
126-
window.applicationPreferences.show("com.ranhiru.apppreferences.PreferenceActivity", function() {
127-
alert("Showing Preferences Activity!");
128-
}, function(error) {
129-
alert("Error! " + JSON.stringify(error));
130-
});
131-
}
132-

0 commit comments

Comments
 (0)