接口: Toast

Toast 向用户提供简短的通知。 它们会暂时出现,不应中断用户体验。 它们也不需要用户输入即可消失。

Since

0.2.0

方法

success

success(msg): void

显示一个成功类型的提示消息。

ddClient.desktopUI.toast.success("message");

参数

NameTypeDescription
msgstringThe message to display in the toast.

返回

void


警告

警告(msg): void

显示一个警告类型的提示消息。

ddClient.desktopUI.toast.warning("message");

参数

NameTypeDescription
msgstringThe message to display in the warning.

返回

void


error

错误(msg): void

显示一个错误类型的提示消息。

ddClient.desktopUI.toast.error("message");

参数

NameTypeDescription
msgstringThe message to display in the toast.

返回

void