ElectronSystemPreferences.getUserDefault method
ElectronSystemPreferences › getUserDefault
Unofficial
Returns the value ofkey in NSUserDefaults. Signature:
getUserDefault(key: string, type: Type): ElectronUserDefaultTypes[Type]Parameters:
| Parameter | Type | Description |
|---|---|---|
| key | string | The NSUserDefaults key to read. |
| type | Type | The type of the value stored under key. |
Returns: ElectronUserDefaultTypes[Type] — The value of key in NSUserDefaults.
Platform: darwin.