接口:Toast
目录
Toast 向用户提供简短的通知。 它们会暂时出现,不应中断用户体验。 它们也不需要用户输入消失。
Since
0.2.0
方法
成功
▸ 成功(msg):void
显示 success 类型的 toast 消息。
ddClient.desktopUI.toast.success("message");参数
| 名字 | 类型 | 描述 |
|---|---|---|
msg | string | 要在 Toast 中显示的消息。 |
返回
void
警告
▸ 警告(msg):void
显示 warning 类型的 toast 消息。
ddClient.desktopUI.toast.warning("message");参数
| 名字 | 类型 | 描述 |
|---|---|---|
msg | string | 要在警告中显示的消息。 |
返回
void
错误
▸ 错误(msg):void
显示 error 类型的 toast 消息。
ddClient.desktopUI.toast.error("message");参数
| 名字 | 类型 | 描述 |
|---|---|---|
msg | string | 要在 Toast 中显示的消息。 |
返回
void