mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
🎨 Support sending notifications on HarmonyOS https://github.com/siyuan-note/siyuan/issues/17125
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
8c98cc574d
commit
b0abc47901
1 changed files with 3 additions and 1 deletions
4
app/src/types/index.d.ts
vendored
4
app/src/types/index.d.ts
vendored
|
|
@ -255,7 +255,8 @@ interface Window {
|
|||
getScreenWidthPx(): number
|
||||
exit(): void
|
||||
setWebViewFocusable(enable: boolean): void
|
||||
sendNotification(channel: string, title: string, body: string, delayInSeconds: number): void
|
||||
sendNotification(channel: string, title: string, body: string, delayInSeconds: number): number
|
||||
cancelNotification(id: number): void
|
||||
};
|
||||
JSHarmony: {
|
||||
showKeyboard(): void
|
||||
|
|
@ -275,6 +276,7 @@ interface Window {
|
|||
exit(): void
|
||||
setWebViewFocusable(enable: boolean): void
|
||||
sendNotification(channel: string, title: string, body: string, delayInSeconds: number): void
|
||||
cancelNotification(id: number): void
|
||||
};
|
||||
|
||||
Protyle: import("../protyle/method").default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue