Function
getBoolean
(key: string, defaultValue?: boolean)
Source from the content-addressed store, hash-verified
| 14 | |
| 15 | // utils.ios.getters |
| 16 | export function getBoolean(key: string, defaultValue?: boolean): boolean { |
| 17 | if (!Common.checkKey(key)) { |
| 18 | return; |
| 19 | } |
| 20 | if (hasKey(key)) { |
| 21 | return userDefaults.boolForKey(key); |
| 22 | } |
| 23 | |
| 24 | return defaultValue; |
| 25 | } |
| 26 | |
| 27 | export function getString(key: string, defaultValue?: string): string { |
| 28 | if (!Common.checkKey(key)) { |
Callers
nothing calls this directly
Tested by
no test coverage detected