MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / clear

Function clear

packages/core/application-settings/index.android.ts:121–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121export function clear(): void {
122 ensureSharedPreferences();
123 sharedPreferences.edit().clear().apply();
124}
125
126export function flush(): boolean {
127 ensureSharedPreferences();

Callers

nothing calls this directly

Calls 4

ensureSharedPreferencesFunction · 0.85
clearMethod · 0.65
applyMethod · 0.45
editMethod · 0.45

Tested by

no test coverage detected