ShareMenu

    For including the share menu as a submenu of other menus, please use the shareMenu role of MenuItem.

    Process:

    • SharingItem - The item to share.

    Instance Methods

    The shareMenu object has the following instance methods:

    shareMenu.popup([options])

    • options PopupOptions (optional)
      • x number (optional) - Default is the current mouse cursor position. Must be declared if y is declared.
      • number (optional) - Default is the current mouse cursor position. Must be declared if x is declared.
      • positioningItem number (optional) macOS - The index of the menu item to be positioned under the mouse cursor at the specified coordinates. Default is -1.

    shareMenu.closePopup([browserWindow])

    • browserWindow (optional) - Default is the focused window.

    Closes the context menu in the .