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
Create share menu on macOS.
sharingItemSharingItem - The item to share.
Creates a new share menu.
shareMenu object has the following instance methods:
Pops up this menu as a context menu in the
browserWindowBrowserWindow (optional) - Default is the focused window.
Closes the context menu in the