Header menu logo fable-electron-docs-api

ShareMenu Type

⚠ Process Availability: Main ✔ | Renderer ❌ | Utility ❌ | Exported ✔ The ShareMenu class creates Share Menu on macOS, which can be used to share information from the current context to apps, social media accounts, and other services.For including the share menu as a submenu of other menus, please use the shareMenu role of MenuItem.### Class: ShareMenu> Create share menu on macOS.Process: Main> [!WARNING] Electron's built-in classes cannot be subclassed in user code. For more information, see the FAQ.

Constructors

Constructor Description

ShareMenu(sharingItem)

Full Usage: ShareMenu(sharingItem)

Parameters:
Returns: ShareMenu
sharingItem : SharingItem

The item to share.

Returns: ShareMenu

Instance members

Instance member Description

this.closePopup ?browserWindow

Full Usage: this.closePopup ?browserWindow

Parameters:
Modifiers: inline

Closes the context menu in the browserWindow.

?browserWindow : BrowserWindow

this.popup ?options

Full Usage: this.popup ?options

Parameters:
Modifiers: inline

Pops up this menu as a context menu in the BrowserWindow.

?options : Options

Type something to start searching.