confirm.d.ts 770 B

123456789101112131415161718192021222324252627
  1. /**
  2. * 弹窗confirm 请求参数定义
  3. * @apiName device.notification.confirm
  4. */
  5. export interface IDeviceNotificationConfirmParams {
  6. /** 消息说明 */
  7. message?: string;
  8. /** 标题 */
  9. title?: string;
  10. /** 按钮名称 */
  11. buttonLabels?: string[];
  12. }
  13. /**
  14. * 弹窗confirm 返回结果定义
  15. * @apiName device.notification.confirm
  16. */
  17. export interface IDeviceNotificationConfirmResult {
  18. /** 被点击按钮的索引值,Number类型,从0开始 */
  19. buttonIndex: number;
  20. }
  21. /**
  22. * 弹窗confirm
  23. * @apiName device.notification.confirm
  24. * @supportVersion pc: 2.5.0 ios: 2.4.0 android: 2.4.0
  25. */
  26. export declare function confirm$(params: IDeviceNotificationConfirmParams): Promise<IDeviceNotificationConfirmResult>;
  27. export default confirm$;