notification(通知)
在屏幕角落跳出提视窗口,提示用户操作状态。
方法
show(options)
显示通知窗口
options
Objecttitle
string - 通知窗口标题description
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://"
});
最后更新于