ShareMenu
ShareMenu クラスは、macOS 上で 共有メニュー を作成し、現在のコンテキストからアプリやソーシャルメディアアカウント、その他のサービスに情報を共有するために使用できます。
For including the share menu as a submenu of other menus, please use the shareMenu role of MenuItem.
クラス: ShareMenu
macOS での共有メニューを作成します。
Process: Main
[!WARNING] Electron's built-in classes cannot be subclassed in user code. For more information, see the FAQ.
new ShareMenu(sharingItem)
sharingItemSharingItem - 共有するアイテム。
新しい共有メニューを作成します。
インスタンスメソッド
shareMenu オブジェクトには以下のメソッドがあります。
shareMenu.popup([options])
Pops up this menu as a context menu in the BrowserWindow.
shareMenu.closePopup([browserWindow])
browserWindowBrowserWindow (optional) - Default is the focused window.
browserWindow 内のこのコンテキストメニューを閉じます。