> For the complete documentation index, see [llms.txt](https://developer.eagle.cool/plugin-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.eagle.cool/plugin-api/zh-tw/api/notification.md).

# notification（通知）

## 方法 <a href="#z1a5y" id="z1a5y"></a>

## show(options) <a href="#tkp0d" id="tkp0d"></a>

顯示通知視窗

* `options` Object
  * `title` string - 通知視窗標題
  * `body` string - 通知視窗描述
  * `icon` URL/base64 - 通知視窗圖示，支援連結或 base64 格式（可選）
  * `mute` boolean - 提示音效（可選）
  * `duration` Interger - 自動隱藏時間（毫秒）（可選）
* 返回 `Promise<>`

```javascript
await eagle.notification.show({
    title: "Basic Notification",
    body: "Notification from the Plugin process",
    mute: false,
    duration: 3000,
    icon: "https://"
});
```

***
