MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getAllKeys

Function getAllKeys

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

Source from the content-addressed store, hash-verified

130}
131
132export function getAllKeys(): Array<string> {
133 ensureSharedPreferences();
134 const mappedPreferences = sharedPreferences.getAll();
135 const iterator = mappedPreferences.keySet().iterator();
136 const result = [];
137 while (iterator.hasNext()) {
138 const key = iterator.next();
139 result.push(key);
140 }
141
142 return result;
143}

Callers

nothing calls this directly

Calls 3

ensureSharedPreferencesFunction · 0.85
nextMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected