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

Function getString

packages/core/application-settings/index.ios.ts:27–36  ·  view source on GitHub ↗
(key: string, defaultValue?: string)

Source from the content-addressed store, hash-verified

25}
26
27export function getString(key: string, defaultValue?: string): string {
28 if (!Common.checkKey(key)) {
29 return;
30 }
31 if (hasKey(key)) {
32 return userDefaults.stringForKey(key);
33 }
34
35 return defaultValue;
36}
37
38export function getNumber(key: string, defaultValue?: number): number {
39 if (!Common.checkKey(key)) {

Callers

nothing calls this directly

Calls 1

hasKeyFunction · 0.70

Tested by

no test coverage detected