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://"
});
最終更新