界面: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