Function
setBoolean
(key: string, value: boolean)
Source from the content-addressed store, hash-verified
| 73 | |
| 74 | // setters |
| 75 | export function setBoolean(key: string, value: boolean): void { |
| 76 | if (!verify(key)) { |
| 77 | return; |
| 78 | } |
| 79 | if (!common.ensureValidValue(value, 'boolean')) { |
| 80 | return; |
| 81 | } |
| 82 | const editor = sharedPreferences.edit(); |
| 83 | editor.putBoolean(key, value); |
| 84 | editor.apply(); |
| 85 | } |
| 86 | |
| 87 | export function setString(key: string, value: string): void { |
| 88 | if (!verify(key)) { |
Callers
nothing calls this directly
Tested by
no test coverage detected