Skip to content

ElectronSystemPreferences.postWorkspaceNotification method

ElectronSystemPreferences › postWorkspaceNotification

Unofficial

Posts event as native notifications of macOS. The userInfo is an object that contains the user information dictionary sent along with the notification.

Signature:

postWorkspaceNotification(event: string, userInfo: Record<string, unknown>): void

Parameters:

ParameterTypeDescription
eventstringThe notification event name.
userInfoRecord<string, unknown>The user information dictionary sent along with the notification.

Platform: darwin.

Returns: void