mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
clear() method added
This commit is contained in:
@@ -74,3 +74,8 @@ export var remove = function (key: string): void {
|
||||
editor.remove(key);
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
export var clear = function (): void {
|
||||
ensureSharedPreferences();
|
||||
sharedPreferences.edit().clear().commit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user