Skip to content

ElectronSystemPreferences.registerDefaults method

ElectronSystemPreferences › registerDefaults

Unofficial

Adds the specified defaults to your application's NSUserDefaults.

Signature:

registerDefaults(defaults: Record<string, string | number | boolean>): void

Parameters:

ParameterTypeDescription
defaultsRecord<string, string | number | boolean>The defaults to add.

Platform: darwin.

Returns: void