介面:Toast
目錄
Toast 向用戶提供簡短的通知。它們會暫時出現,不應中斷使用者體驗。它們也不需要使用者輸入即可消失。
自
0.2.0
方法
成功
▸ success(msg
): void
顯示成功型別的 Toast 訊息。
ddClient.desktopUI.toast.success("message");
引數
名稱 | 型別 | 描述 |
---|---|---|
msg | 字串 | 要在 Toast 中顯示的訊息。 |
返回
void
警告
▸ warning(msg
): void
顯示警告型別的 Toast 訊息。
ddClient.desktopUI.toast.warning("message");
引數
名稱 | 型別 | 描述 |
---|---|---|
msg | 字串 | 要在警告中顯示的訊息。 |
返回
void
錯誤
▸ error(msg
): void
顯示錯誤型別的 Toast 訊息。
ddClient.desktopUI.toast.error("message");
引數
名稱 | 型別 | 描述 |
---|---|---|
msg | 字串 | 要在 Toast 中顯示的訊息。 |
返回
void