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.
Processo: Main
new ShareMenu(sharingItem)
sharingItem
SharingItem - The item to share.
Creates a new share menu.
Métodos de Instância
O objeto shareMenu
possui os seguintes métodos de instância:
shareMenu.popup([options])
Pops up this menu as a context menu in the BrowserWindow
.
shareMenu.closePopup([browserWindow])
browserWindow
BrowserWindow (optional) - Default is the focused window.
Fecha o menu de contexto em browserWindow
.