alert.d.ts 688 B

12345678910111213141516171819202122232425
  1. /**
  2. * 弹窗alert 请求参数定义
  3. * @apiName device.notification.alert
  4. */
  5. export interface IDeviceNotificationAlertParams {
  6. /** 消息内容 */
  7. message?: string;
  8. /** 弹窗标题 */
  9. title?: string;
  10. /** 按钮名称 */
  11. buttonName?: string;
  12. }
  13. /**
  14. * 弹窗alert 返回结果定义, 将在点击button之后触发
  15. * @apiName device.notification.alert
  16. */
  17. export interface IDeviceNotificationAlertResult {
  18. }
  19. /**
  20. * 弹窗alert
  21. * @apiName device.notification.alert
  22. * @supportVersion pc: 2.5.0 ios: 2.4.0 android: 2.4.0
  23. */
  24. export declare function alert$(params: IDeviceNotificationAlertParams): Promise<IDeviceNotificationAlertResult>;
  25. export default alert$;