notification(通知)
在螢幕角落跳出提視視窗,提示使用者操作狀態。
Last updated
在螢幕角落跳出提視視窗,提示使用者操作狀態。
顯示通知視窗
options Object
title string - 通知視窗標題
body string - 通知視窗描述
icon URL/base64 - 通知視窗圖示,支援連結或 base64 格式(可選)
mute boolean - 提示音效(可選)
duration Interger - 自動隱藏時間(毫秒)(可選)
返回 Promise<>
await eagle.notification.show({
title: "Basic Notification",
body: "Notification from the Plugin process",
mute: false,
duration: 3000,
icon: "https://"
});Last updated