ShareMenu 
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
new ShareMenu(sharingItem) 
- sharingItemSharingItem - The item to share.
Creates a new share menu.
Instance Methods 
The shareMenu object has the following instance methods:
shareMenu.popup([options]) 
- optionsPopupOptions (optional)- browserWindowBrowserWindow (optional) - Default is the focused window.
- xnumber (optional) - Default is the current mouse cursor position. Must be declared if- yis declared.
- ynumber (optional) - Default is the current mouse cursor position. Must be declared if- xis declared.
- positioningItemnumber (optional) macOS - The index of the menu item to be positioned under the mouse cursor at the specified coordinates. Default is -1.
- callbackFunction (optional) - Called when menu is closed.
 
Pops up this menu as a context menu in the BrowserWindow.
shareMenu.closePopup([browserWindow]) 
- browserWindowBrowserWindow (optional) - Default is the focused window.
Closes the context menu in the browserWindow.