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:

Parameter Type Description
defaults Record<string, string | number | boolean> The defaults to add.

Platform: darwin.

Returns: void