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