ElectronSystemPreferences.postNotification method
ElectronSystemPreferences › postNotification
Unofficial
Postsevent as native notifications of macOS. The userInfo is an object that contains the user information dictionary sent along with the notification.Signature:
postNotification($event: string, userInfo: Record<string, unknown>, deliverImmediately?: boolean): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | string | |
| userInfo | Record<string, unknown> | The user information dictionary sent along with the notification. |
| deliverImmediately? | boolean | Whether to deliver the notification immediately. Platform: darwin. |
Returns: void