1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit ArkUI 19 */ 20 21/*** if arkts 1.2 */ 22import { 23 ResourceStr, ResourceColor, VoidCallback, Offset, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, 24 LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles 25} from './units'; 26import { WordBreak, DialogButtonStyle, BorderStyle } from './enums'; 27import { Rectangle, BlurStyle, Callback, TransitionEffect, ShadowOptions, ShadowStyle, HoverModeAreaType, DismissReason, 28 BackgroundBlurStyleOptions, BackgroundEffectOptions } from './common'; 29import { LevelOrder, ImmersiveMode, LevelMode } from '../../@ohos.promptAction'; 30/*** endif */ 31 32/** 33 * The alignment of dialog, 34 * 35 * @enum { number } 36 * @syscap SystemCapability.ArkUI.ArkUI.Full 37 * @since 7 38 */ 39/** 40 * The alignment of dialog, 41 * 42 * @enum { number } 43 * @syscap SystemCapability.ArkUI.ArkUI.Full 44 * @crossplatform 45 * @since 10 46 */ 47/** 48 * The alignment of dialog, 49 * 50 * @enum { number } 51 * @syscap SystemCapability.ArkUI.ArkUI.Full 52 * @crossplatform 53 * @atomicservice 54 * @since arkts {'1.1':'11','1.2':'20'} 55 * @arkts 1.1&1.2 56 */ 57declare enum DialogAlignment { 58 /** 59 * Vertical top alignment. 60 * 61 * @syscap SystemCapability.ArkUI.ArkUI.Full 62 * @since 7 63 */ 64 /** 65 * Vertical top alignment. 66 * 67 * @syscap SystemCapability.ArkUI.ArkUI.Full 68 * @crossplatform 69 * @since 10 70 */ 71 /** 72 * Vertical top alignment. 73 * 74 * @syscap SystemCapability.ArkUI.ArkUI.Full 75 * @crossplatform 76 * @atomicservice 77 * @since arkts {'1.1':'11','1.2':'20'} 78 * @arkts 1.1&1.2 79 */ 80 Top, 81 82 /** 83 * Align vertically to the center. 84 * 85 * @syscap SystemCapability.ArkUI.ArkUI.Full 86 * @since 7 87 */ 88 /** 89 * Align vertically to the center. 90 * 91 * @syscap SystemCapability.ArkUI.ArkUI.Full 92 * @crossplatform 93 * @since 10 94 */ 95 /** 96 * Align vertically to the center. 97 * 98 * @syscap SystemCapability.ArkUI.ArkUI.Full 99 * @crossplatform 100 * @atomicservice 101 * @since arkts {'1.1':'11','1.2':'20'} 102 * @arkts 1.1&1.2 103 */ 104 Center, 105 106 /** 107 * Vertical bottom alignment. 108 * 109 * @syscap SystemCapability.ArkUI.ArkUI.Full 110 * @since 7 111 */ 112 /** 113 * Vertical bottom alignment. 114 * 115 * @syscap SystemCapability.ArkUI.ArkUI.Full 116 * @crossplatform 117 * @since 10 118 */ 119 /** 120 * Vertical bottom alignment. 121 * 122 * @syscap SystemCapability.ArkUI.ArkUI.Full 123 * @crossplatform 124 * @atomicservice 125 * @since arkts {'1.1':'11','1.2':'20'} 126 * @arkts 1.1&1.2 127 */ 128 Bottom, 129 130 /** 131 * Default alignment. 132 * 133 * @syscap SystemCapability.ArkUI.ArkUI.Full 134 * @since 7 135 */ 136 /** 137 * Default alignment. 138 * 139 * @syscap SystemCapability.ArkUI.ArkUI.Full 140 * @crossplatform 141 * @since 10 142 */ 143 /** 144 * Default alignment. 145 * 146 * @syscap SystemCapability.ArkUI.ArkUI.Full 147 * @crossplatform 148 * @atomicservice 149 * @since arkts {'1.1':'11','1.2':'20'} 150 * @arkts 1.1&1.2 151 */ 152 Default, 153 154 /** 155 * Align the upper left corner. 156 * 157 * @syscap SystemCapability.ArkUI.ArkUI.Full 158 * @since 8 159 */ 160 /** 161 * Align the upper left corner. 162 * 163 * @syscap SystemCapability.ArkUI.ArkUI.Full 164 * @crossplatform 165 * @since 10 166 */ 167 /** 168 * Align the upper left corner. 169 * 170 * @syscap SystemCapability.ArkUI.ArkUI.Full 171 * @crossplatform 172 * @atomicservice 173 * @since arkts {'1.1':'11','1.2':'20'} 174 * @arkts 1.1&1.2 175 */ 176 TopStart, 177 178 /** 179 * Align the upper right corner. 180 * 181 * @syscap SystemCapability.ArkUI.ArkUI.Full 182 * @since 8 183 */ 184 /** 185 * Align the upper right corner. 186 * 187 * @syscap SystemCapability.ArkUI.ArkUI.Full 188 * @crossplatform 189 * @since 10 190 */ 191 /** 192 * Align the upper right corner. 193 * 194 * @syscap SystemCapability.ArkUI.ArkUI.Full 195 * @crossplatform 196 * @atomicservice 197 * @since arkts {'1.1':'11','1.2':'20'} 198 * @arkts 1.1&1.2 199 */ 200 TopEnd, 201 202 /** 203 * Left center alignment. 204 * 205 * @syscap SystemCapability.ArkUI.ArkUI.Full 206 * @since 8 207 */ 208 /** 209 * Left center alignment. 210 * 211 * @syscap SystemCapability.ArkUI.ArkUI.Full 212 * @crossplatform 213 * @since 10 214 */ 215 /** 216 * Left center alignment. 217 * 218 * @syscap SystemCapability.ArkUI.ArkUI.Full 219 * @crossplatform 220 * @atomicservice 221 * @since arkts {'1.1':'11','1.2':'20'} 222 * @arkts 1.1&1.2 223 */ 224 CenterStart, 225 226 /** 227 * Right center alignment. 228 * 229 * @syscap SystemCapability.ArkUI.ArkUI.Full 230 * @since 8 231 */ 232 /** 233 * Right center alignment. 234 * 235 * @syscap SystemCapability.ArkUI.ArkUI.Full 236 * @crossplatform 237 * @since 10 238 */ 239 /** 240 * Right center alignment. 241 * 242 * @syscap SystemCapability.ArkUI.ArkUI.Full 243 * @crossplatform 244 * @atomicservice 245 * @since arkts {'1.1':'11','1.2':'20'} 246 * @arkts 1.1&1.2 247 */ 248 CenterEnd, 249 250 /** 251 * Align the lower left corner. 252 * 253 * @syscap SystemCapability.ArkUI.ArkUI.Full 254 * @since 8 255 */ 256 /** 257 * Align the lower left corner. 258 * 259 * @syscap SystemCapability.ArkUI.ArkUI.Full 260 * @crossplatform 261 * @since 10 262 */ 263 /** 264 * Align the lower left corner. 265 * 266 * @syscap SystemCapability.ArkUI.ArkUI.Full 267 * @crossplatform 268 * @atomicservice 269 * @since arkts {'1.1':'11','1.2':'20'} 270 * @arkts 1.1&1.2 271 */ 272 BottomStart, 273 274 /** 275 * Align the lower right corner. 276 * 277 * @syscap SystemCapability.ArkUI.ArkUI.Full 278 * @since 8 279 */ 280 /** 281 * Align the lower right corner. 282 * 283 * @syscap SystemCapability.ArkUI.ArkUI.Full 284 * @crossplatform 285 * @since 10 286 */ 287 /** 288 * Align the lower right corner. 289 * 290 * @syscap SystemCapability.ArkUI.ArkUI.Full 291 * @crossplatform 292 * @atomicservice 293 * @since arkts {'1.1':'11','1.2':'20'} 294 * @arkts 1.1&1.2 295 */ 296 BottomEnd, 297} 298 299/** 300* The arrangement of buttons in dialog. 301* 302* @enum { number } 303* @syscap SystemCapability.ArkUI.ArkUI.Full 304* @crossplatform 305* @since 10 306*/ 307/** 308* The arrangement of buttons in dialog. 309* 310* @enum { number } 311* @syscap SystemCapability.ArkUI.ArkUI.Full 312* @crossplatform 313* @atomicservice 314* @since arkts {'1.1':'11','1.2':'20'} 315* @arkts 1.1&1.2 316*/ 317declare enum DialogButtonDirection { 318 /** 319 * Two or fewer buttons are arranged horizontally, 320 * and two or more buttons are arranged vertically. 321 * @syscap SystemCapability.ArkUI.ArkUI.Full 322 * @crossplatform 323 * @since 10 324 */ 325 /** 326 * Two or fewer buttons are arranged horizontally, 327 * and two or more buttons are arranged vertically. 328 * @syscap SystemCapability.ArkUI.ArkUI.Full 329 * @crossplatform 330 * @atomicservice 331 * @since arkts {'1.1':'11','1.2':'20'} 332 * @arkts 1.1&1.2 333 */ 334 AUTO = 0, 335 336 /** 337 * Buttons are arranged horizontally. 338 * 339 * @syscap SystemCapability.ArkUI.ArkUI.Full 340 * @crossplatform 341 * @since 10 342 */ 343 /** 344 * Buttons are arranged horizontally. 345 * 346 * @syscap SystemCapability.ArkUI.ArkUI.Full 347 * @crossplatform 348 * @atomicservice 349 * @since arkts {'1.1':'11','1.2':'20'} 350 * @arkts 1.1&1.2 351 */ 352 HORIZONTAL = 1, 353 354 /** 355 * Buttons are arranged vertically. 356 * 357 * @syscap SystemCapability.ArkUI.ArkUI.Full 358 * @crossplatform 359 * @since 10 360 */ 361 /** 362 * Buttons are arranged vertically. 363 * 364 * @syscap SystemCapability.ArkUI.ArkUI.Full 365 * @crossplatform 366 * @atomicservice 367 * @since arkts {'1.1':'11','1.2':'20'} 368 * @arkts 1.1&1.2 369 */ 370 VERTICAL = 2, 371} 372 373/** 374 * Base button param. 375 * 376 * @interface AlertDialogButtonBaseOptions 377 * @syscap SystemCapability.ArkUI.ArkUI.Full 378 * @crossplatform 379 * @atomicservice 380 * @since arkts {'1.1':'18','1.2':'20'} 381 * @arkts 1.1&1.2 382 */ 383declare interface AlertDialogButtonBaseOptions { 384 /** 385 * Enable switch of button. 386 * 387 * @type { ?boolean } 388 * @default true 389 * @syscap SystemCapability.ArkUI.ArkUI.Full 390 * @crossplatform 391 * @since 10 392 */ 393 /** 394 * Enable switch of button. 395 * 396 * @type { ?boolean } 397 * @default true 398 * @syscap SystemCapability.ArkUI.ArkUI.Full 399 * @crossplatform 400 * @atomicservice 401 * @since 11 402 */ 403 /** 404 * Enable switch of button. 405 * Anonymous Object Rectification. 406 * 407 * @type { ?boolean } 408 * @default true 409 * @syscap SystemCapability.ArkUI.ArkUI.Full 410 * @crossplatform 411 * @atomicservice 412 * @since arkts {'1.1':'18','1.2':'20'} 413 * @arkts 1.1&1.2 414 */ 415 enabled?: boolean; 416 417 /** 418 * Default focus switch of button. 419 * 420 * @type { ?boolean } 421 * @default false 422 * @syscap SystemCapability.ArkUI.ArkUI.Full 423 * @crossplatform 424 * @since 10 425 */ 426 /** 427 * Default focus switch of button. 428 * 429 * @type { ?boolean } 430 * @default false 431 * @syscap SystemCapability.ArkUI.ArkUI.Full 432 * @crossplatform 433 * @atomicservice 434 * @since 11 435 */ 436 /** 437 * Default focus switch of button. 438 * Anonymous Object Rectification. 439 * 440 * @type { ?boolean } 441 * @default false 442 * @syscap SystemCapability.ArkUI.ArkUI.Full 443 * @crossplatform 444 * @atomicservice 445 * @since arkts {'1.1':'18','1.2':'20'} 446 * @arkts 1.1&1.2 447 */ 448 defaultFocus?: boolean; 449 450 /** 451 * Style of button. 452 * 453 * @type { ?DialogButtonStyle } 454 * @default - 455 * @syscap SystemCapability.ArkUI.ArkUI.Full 456 * @crossplatform 457 * @since 10 458 */ 459 /** 460 * Style of button. 461 * 462 * @type { ?DialogButtonStyle } 463 * @default - 464 * @syscap SystemCapability.ArkUI.ArkUI.Full 465 * @crossplatform 466 * @atomicservice 467 * @since 11 468 */ 469 /** 470 * Style of button. 471 * Anonymous Object Rectification. 472 * 473 * @type { ?DialogButtonStyle } 474 * @default - 475 * @syscap SystemCapability.ArkUI.ArkUI.Full 476 * @crossplatform 477 * @atomicservice 478 * @since arkts {'1.1':'18','1.2':'20'} 479 * @arkts 1.1&1.2 480 */ 481 style?: DialogButtonStyle; 482 483 /** 484 * Text content of button. 485 * 486 * @type { ResourceStr } 487 * @syscap SystemCapability.ArkUI.ArkUI.Full 488 * @crossplatform 489 * @since 10 490 */ 491 /** 492 * Text content of button. 493 * 494 * @type { ResourceStr } 495 * @syscap SystemCapability.ArkUI.ArkUI.Full 496 * @crossplatform 497 * @atomicservice 498 * @since 11 499 */ 500 /** 501 * Text content of button. 502 * Anonymous Object Rectification. 503 * 504 * @type { ResourceStr } 505 * @syscap SystemCapability.ArkUI.ArkUI.Full 506 * @crossplatform 507 * @atomicservice 508 * @since arkts {'1.1':'18','1.2':'20'} 509 * @arkts 1.1&1.2 510 */ 511 value: ResourceStr; 512 513 /** 514 * Text color of button. 515 * 516 * @type { ?ResourceColor } 517 * @syscap SystemCapability.ArkUI.ArkUI.Full 518 * @crossplatform 519 * @since 10 520 */ 521 /** 522 * Text color of button. 523 * 524 * @type { ?ResourceColor } 525 * @syscap SystemCapability.ArkUI.ArkUI.Full 526 * @crossplatform 527 * @atomicservice 528 * @since 11 529 */ 530 /** 531 * Text color of button. 532 * Anonymous Object Rectification. 533 * 534 * @type { ?ResourceColor } 535 * @syscap SystemCapability.ArkUI.ArkUI.Full 536 * @crossplatform 537 * @atomicservice 538 * @since arkts {'1.1':'18','1.2':'20'} 539 * @arkts 1.1&1.2 540 */ 541 fontColor?: ResourceColor; 542 543 /** 544 * Background color of button. 545 * 546 * @type { ?ResourceColor } 547 * @syscap SystemCapability.ArkUI.ArkUI.Full 548 * @crossplatform 549 * @since 10 550 */ 551 /** 552 * Background color of button. 553 * 554 * @type { ?ResourceColor } 555 * @syscap SystemCapability.ArkUI.ArkUI.Full 556 * @crossplatform 557 * @atomicservice 558 * @since 11 559 */ 560 /** 561 * Background color of button. 562 * Anonymous Object Rectification. 563 * 564 * @type { ?ResourceColor } 565 * @syscap SystemCapability.ArkUI.ArkUI.Full 566 * @crossplatform 567 * @atomicservice 568 * @since arkts {'1.1':'18','1.2':'20'} 569 * @arkts 1.1&1.2 570 */ 571 backgroundColor?: ResourceColor; 572 573 /** 574 * Method executed by the callback. 575 * 576 * @type { function } 577 * @syscap SystemCapability.ArkUI.ArkUI.Full 578 * @crossplatform 579 * @since 10 580 */ 581 /** 582 * Method executed by the callback. 583 * 584 * @type { function } 585 * @syscap SystemCapability.ArkUI.ArkUI.Full 586 * @crossplatform 587 * @atomicservice 588 * @since 11 589 */ 590 /** 591 * Method executed by the callback. 592 * Anonymous Object Rectification. 593 * 594 * @type { VoidCallback } 595 * @syscap SystemCapability.ArkUI.ArkUI.Full 596 * @crossplatform 597 * @atomicservice 598 * @since arkts {'1.1':'18','1.2':'20'} 599 * @arkts 1.1&1.2 600 */ 601 action: VoidCallback; 602} 603 604/** 605 * Base button param used for AlertDialogParamWithOptions. 606 * 607 * @extends AlertDialogButtonBaseOptions 608 * @interface AlertDialogButtonOptions 609 * @syscap SystemCapability.ArkUI.ArkUI.Full 610 * @crossplatform 611 * @since 10 612 */ 613/** 614 * Base button param used for AlertDialogParamWithOptions. 615 * 616 * @extends AlertDialogButtonBaseOptions 617 * @interface AlertDialogButtonOptions 618 * @syscap SystemCapability.ArkUI.ArkUI.Full 619 * @crossplatform 620 * @atomicservice 621 * @since 11 622 */ 623/** 624 * Button param used for AlertDialogParamWithOptions. 625 * 626 * @extends AlertDialogButtonBaseOptions 627 * @interface AlertDialogButtonOptions 628 * @syscap SystemCapability.ArkUI.ArkUI.Full 629 * @crossplatform 630 * @atomicservice 631 * @since arkts {'1.1':'18','1.2':'20'} 632 * @arkts 1.1&1.2 633 */ 634declare interface AlertDialogButtonOptions extends AlertDialogButtonBaseOptions { 635 /** 636 * Define whether the button responds to Enter/Space key by default. 637 * 638 * @type { ?boolean } 639 * @syscap SystemCapability.ArkUI.ArkUI.Full 640 * @crossplatform 641 * @atomicservice 642 * @since 12 643 */ 644 /** 645 * Define whether the button responds to Enter/Space key by default. 646 * Anonymous Object Rectification. 647 * 648 * @type { ?boolean } 649 * @syscap SystemCapability.ArkUI.ArkUI.Full 650 * @crossplatform 651 * @atomicservice 652 * @since arkts {'1.1':'18','1.2':'20'} 653 * @arkts 1.1&1.2 654 */ 655 primary?: boolean; 656} 657 658/** 659 * Defines TextStyle in the AlertDialog. 660 * 661 * @interface TextStyle 662 * @syscap SystemCapability.ArkUI.ArkUI.Full 663 * @crossplatform 664 * @atomicservice 665 * @since arkts {'1.1':'12','1.2':'20'} 666 * @arkts 1.1&1.2 667 */ 668declare interface TextStyle { 669 /** 670 * Set the word break type. 671 * 672 * @type { ?WordBreak } 673 * @syscap SystemCapability.ArkUI.ArkUI.Full 674 * @crossplatform 675 * @atomicservice 676 * @since arkts {'1.1':'12','1.2':'20'} 677 * @arkts 1.1&1.2 678 */ 679 wordBreak?: WordBreak; 680} 681 682/** 683 * Import the LevelOrder type from promptAction. 684 * 685 * @typedef { import('../api/@ohos.promptAction').LevelOrder } LevelOrder 686 * @syscap SystemCapability.ArkUI.ArkUI.Full 687 * @crossplatform 688 * @atomicservice 689 * @since 18 690 */ 691declare type LevelOrder = import('../api/@ohos.promptAction').LevelOrder; 692 693/** 694 * Base param used for AlertDialog.show method. 695 * 696 * @interface AlertDialogParam 697 * @syscap SystemCapability.ArkUI.ArkUI.Full 698 * @since 7 699 */ 700/** 701 * Base param used for AlertDialog.show method. 702 * 703 * @interface AlertDialogParam 704 * @syscap SystemCapability.ArkUI.ArkUI.Full 705 * @crossplatform 706 * @since 10 707 */ 708/** 709 * Base param used for AlertDialog.show method. 710 * 711 * @interface AlertDialogParam 712 * @syscap SystemCapability.ArkUI.ArkUI.Full 713 * @crossplatform 714 * @atomicservice 715 * @since arkts {'1.1':'11','1.2':'20'} 716 * @arkts 1.1&1.2 717 */ 718declare interface AlertDialogParam { 719 /** 720 * Title Properties 721 * 722 * @type { ?ResourceStr } 723 * @syscap SystemCapability.ArkUI.ArkUI.Full 724 * @since 7 725 */ 726 /** 727 * Title Properties 728 * 729 * @type { ?ResourceStr } 730 * @syscap SystemCapability.ArkUI.ArkUI.Full 731 * @crossplatform 732 * @since 10 733 */ 734 /** 735 * Title Properties 736 * 737 * @type { ?ResourceStr } 738 * @syscap SystemCapability.ArkUI.ArkUI.Full 739 * @crossplatform 740 * @atomicservice 741 * @since arkts {'1.1':'11','1.2':'20'} 742 * @arkts 1.1&1.2 743 */ 744 title?: ResourceStr; 745 746 /** 747 * Subtitle Properties 748 * @type { ?ResourceStr } 749 * @syscap SystemCapability.ArkUI.ArkUI.Full 750 * @crossplatform 751 * @since 10 752 */ 753 /** 754 * Subtitle Properties 755 * @type { ?ResourceStr } 756 * @syscap SystemCapability.ArkUI.ArkUI.Full 757 * @crossplatform 758 * @atomicservice 759 * @since arkts {'1.1':'11','1.2':'20'} 760 * @arkts 1.1&1.2 761 */ 762 subtitle?: ResourceStr; 763 764 /** 765 * message Properties 766 * 767 * @type { ResourceStr } 768 * @syscap SystemCapability.ArkUI.ArkUI.Full 769 * @since 7 770 */ 771 /** 772 * message Properties 773 * 774 * @type { ResourceStr } 775 * @syscap SystemCapability.ArkUI.ArkUI.Full 776 * @crossplatform 777 * @since 10 778 */ 779 /** 780 * message Properties 781 * 782 * @type { ResourceStr } 783 * @syscap SystemCapability.ArkUI.ArkUI.Full 784 * @crossplatform 785 * @atomicservice 786 * @since arkts {'1.1':'11','1.2':'20'} 787 * @arkts 1.1&1.2 788 */ 789 message: ResourceStr; 790 791 /** 792 * Allows users to click the mask layer to exit. 793 * 794 * @type { ?boolean } 795 * @syscap SystemCapability.ArkUI.ArkUI.Full 796 * @since 7 797 */ 798 /** 799 * Allows users to click the mask layer to exit. 800 * 801 * @type { ?boolean } 802 * @syscap SystemCapability.ArkUI.ArkUI.Full 803 * @crossplatform 804 * @since 10 805 */ 806 /** 807 * Allows users to click the mask layer to exit. 808 * 809 * @type { ?boolean } 810 * @syscap SystemCapability.ArkUI.ArkUI.Full 811 * @crossplatform 812 * @atomicservice 813 * @since arkts {'1.1':'11','1.2':'20'} 814 * @arkts 1.1&1.2 815 */ 816 autoCancel?: boolean; 817 818 /** 819 * Execute Cancel Function. 820 * 821 * @type { ?function } 822 * @syscap SystemCapability.ArkUI.ArkUI.Full 823 * @since 7 824 */ 825 /** 826 * Execute Cancel Function. 827 * 828 * @type { ?function } 829 * @syscap SystemCapability.ArkUI.ArkUI.Full 830 * @crossplatform 831 * @since 10 832 */ 833 /** 834 * Execute Cancel Function. 835 * 836 * @type { ?function } 837 * @syscap SystemCapability.ArkUI.ArkUI.Full 838 * @crossplatform 839 * @atomicservice 840 * @since 11 841 */ 842 /** 843 * Execute Cancel Function. 844 * Anonymous Object Rectification. 845 * 846 * @type { ?VoidCallback } 847 * @syscap SystemCapability.ArkUI.ArkUI.Full 848 * @crossplatform 849 * @atomicservice 850 * @since arkts {'1.1':'18','1.2':'20'} 851 * @arkts 1.1&1.2 852 */ 853 cancel?: VoidCallback; 854 855 /** 856 * Alignment in the vertical direction. 857 * 858 * @type { ?DialogAlignment } 859 * @syscap SystemCapability.ArkUI.ArkUI.Full 860 * @since 7 861 */ 862 /** 863 * Alignment in the vertical direction. 864 * 865 * @type { ?DialogAlignment } 866 * @syscap SystemCapability.ArkUI.ArkUI.Full 867 * @crossplatform 868 * @since 10 869 */ 870 /** 871 * Alignment in the vertical direction. 872 * 873 * @type { ?DialogAlignment } 874 * @syscap SystemCapability.ArkUI.ArkUI.Full 875 * @crossplatform 876 * @atomicservice 877 * @since arkts {'1.1':'11','1.2':'20'} 878 * @arkts 1.1&1.2 879 */ 880 alignment?: DialogAlignment; 881 882 /** 883 * Offset of the pop-up window relative to the alignment position. 884 * 885 * @type { ?Offset } 886 * @syscap SystemCapability.ArkUI.ArkUI.Full 887 * @since 7 888 */ 889 /** 890 * Offset of the pop-up window relative to the alignment position. 891 * 892 * @type { ?Offset } 893 * @syscap SystemCapability.ArkUI.ArkUI.Full 894 * @crossplatform 895 * @since 10 896 */ 897 /** 898 * Offset of the pop-up window relative to the alignment position. 899 * 900 * @type { ?Offset } 901 * @syscap SystemCapability.ArkUI.ArkUI.Full 902 * @crossplatform 903 * @atomicservice 904 * @since arkts {'1.1':'11','1.2':'20'} 905 * @arkts 1.1&1.2 906 */ 907 offset?: Offset; 908 909 /** 910 * Grid count of dialog. 911 * 912 * @type { ?number } 913 * @syscap SystemCapability.ArkUI.ArkUI.Full 914 * @since 7 915 */ 916 /** 917 * Grid count of dialog. 918 * 919 * @type { ?number } 920 * @syscap SystemCapability.ArkUI.ArkUI.Full 921 * @crossplatform 922 * @since 10 923 */ 924 /** 925 * Grid count of dialog. 926 * 927 * @type { ?number } 928 * @syscap SystemCapability.ArkUI.ArkUI.Full 929 * @crossplatform 930 * @atomicservice 931 * @since arkts {'1.1':'11','1.2':'20'} 932 * @arkts 1.1&1.2 933 */ 934 gridCount?: number; 935 936 /** 937 * Mask Region of dialog. The size cannot exceed the main window. 938 * 939 * @type { ?Rectangle } 940 * @syscap SystemCapability.ArkUI.ArkUI.Full 941 * @crossplatform 942 * @since 10 943 */ 944 /** 945 * Mask Region of dialog. The size cannot exceed the main window. 946 * 947 * @type { ?Rectangle } 948 * @syscap SystemCapability.ArkUI.ArkUI.Full 949 * @crossplatform 950 * @atomicservice 951 * @since arkts {'1.1':'11','1.2':'20'} 952 * @arkts 1.1&1.2 953 */ 954 maskRect?: Rectangle; 955 956 /** 957 * Whether to display in the sub window. 958 * 959 * @type { ?boolean } 960 * @default false 961 * @syscap SystemCapability.ArkUI.ArkUI.Full 962 * @crossplatform 963 * @since 11 964 */ 965 /** 966 * Whether to display in the sub window. 967 * 968 * @type { ?boolean } 969 * @default false 970 * @syscap SystemCapability.ArkUI.ArkUI.Full 971 * @crossplatform 972 * @atomicservice 973 * @since arkts {'1.1':'12','1.2':'20'} 974 * @arkts 1.1&1.2 975 */ 976 showInSubWindow?: boolean; 977 978 /** 979 * Whether it is a modal dialog 980 * @type { ?boolean } 981 * @default true 982 * @syscap SystemCapability.ArkUI.ArkUI.Full 983 * @crossplatform 984 * @since 11 985 */ 986 /** 987 * Whether it is a modal dialog 988 * @type { ?boolean } 989 * @default true 990 * @syscap SystemCapability.ArkUI.ArkUI.Full 991 * @crossplatform 992 * @atomicservice 993 * @since arkts {'1.1':'12','1.2':'20'} 994 * @arkts 1.1&1.2 995 */ 996 isModal?: boolean; 997 998 /** 999 * Defines the alertDialog's background color 1000 * 1001 * @type { ?ResourceColor } 1002 * @default Color.Transparent 1003 * @syscap SystemCapability.ArkUI.ArkUI.Full 1004 * @crossplatform 1005 * @since 11 1006 */ 1007 /** 1008 * Defines the alertDialog's background color 1009 * 1010 * @type { ?ResourceColor } 1011 * @default Color.Transparent 1012 * @syscap SystemCapability.ArkUI.ArkUI.Full 1013 * @crossplatform 1014 * @atomicservice 1015 * @since arkts {'1.1':'12','1.2':'20'} 1016 * @arkts 1.1&1.2 1017 */ 1018 backgroundColor?: ResourceColor; 1019 1020 /** 1021 * Defines the alertDialog's background blur Style 1022 * 1023 * @type { ?BlurStyle } 1024 * @default BlurStyle.COMPONENT_ULTRA_THICK 1025 * @syscap SystemCapability.ArkUI.ArkUI.Full 1026 * @crossplatform 1027 * @since 11 1028 */ 1029 /** 1030 * Defines the alertDialog's background blur Style 1031 * 1032 * @type { ?BlurStyle } 1033 * @default BlurStyle.COMPONENT_ULTRA_THICK 1034 * @syscap SystemCapability.ArkUI.ArkUI.Full 1035 * @crossplatform 1036 * @atomicservice 1037 * @since arkts {'1.1':'12','1.2':'20'} 1038 * @arkts 1.1&1.2 1039 */ 1040 backgroundBlurStyle?: BlurStyle; 1041 1042 /** 1043 * Defines the alertDialog's background blur style with options 1044 * 1045 * @type { ?BackgroundBlurStyleOptions } 1046 * @syscap SystemCapability.ArkUI.ArkUI.Full 1047 * @crossplatform 1048 * @atomicservice 1049 * @since arkts {'1.1':'19','1.2':'20'} 1050 * @arkts 1.1&1.2 1051 */ 1052 backgroundBlurStyleOptions?: BackgroundBlurStyleOptions; 1053 1054 /** 1055 * Defines the alertDialog's background effect with options 1056 * 1057 * @type { ?BackgroundEffectOptions } 1058 * @syscap SystemCapability.ArkUI.ArkUI.Full 1059 * @crossplatform 1060 * @atomicservice 1061 * @since arkts {'1.1':'19','1.2':'20'} 1062 * @arkts 1.1&1.2 1063 */ 1064 backgroundEffect?: BackgroundEffectOptions; 1065 1066 /** 1067 * Callback function when the dialog interactive dismiss 1068 * 1069 * @type { ?Callback<DismissDialogAction> } 1070 * @syscap SystemCapability.ArkUI.ArkUI.Full 1071 * @crossplatform 1072 * @atomicservice 1073 * @since arkts {'1.1':'12','1.2':'20'} 1074 * @arkts 1.1&1.2 1075 */ 1076 onWillDismiss?: Callback<DismissDialogAction>; 1077 1078 /** 1079 * Transition parameters of opening/closing AlertDialog. 1080 * 1081 * @type { ?TransitionEffect } 1082 * @syscap SystemCapability.ArkUI.ArkUI.Full 1083 * @crossplatform 1084 * @atomicservice 1085 * @since arkts {'1.1':'12','1.2':'20'} 1086 * @arkts 1.1&1.2 1087 */ 1088 transition?: TransitionEffect; 1089 1090 /** 1091 * Defines the alertDialog's corner radius. 1092 * 1093 * @type { ?(Dimension | BorderRadiuses | LocalizedBorderRadiuses) } 1094 * @default { topLeft: '32vp', topRight: '32vp', bottomLeft: '32vp', bottomRight: '32vp' } 1095 * @syscap SystemCapability.ArkUI.ArkUI.Full 1096 * @crossplatform 1097 * @atomicservice 1098 * @since arkts {'1.1':'12','1.2':'20'} 1099 * @arkts 1.1&1.2 1100 */ 1101 cornerRadius?: Dimension | BorderRadiuses | LocalizedBorderRadiuses; 1102 1103 /** 1104 * Defines the alertDialog's width. 1105 * 1106 * @type { ?Dimension } 1107 * @syscap SystemCapability.ArkUI.ArkUI.Full 1108 * @crossplatform 1109 * @atomicservice 1110 * @since arkts {'1.1':'12','1.2':'20'} 1111 * @arkts 1.1&1.2 1112 */ 1113 width?: Dimension; 1114 1115 /** 1116 * Defines the alertDialog's height. 1117 * 1118 * @type { ?Dimension } 1119 * @syscap SystemCapability.ArkUI.ArkUI.Full 1120 * @crossplatform 1121 * @atomicservice 1122 * @since arkts {'1.1':'12','1.2':'20'} 1123 * @arkts 1.1&1.2 1124 */ 1125 height?: Dimension; 1126 1127 /** 1128 * Defines the alertDialog's border width. 1129 * 1130 * @type { ?(Dimension | EdgeWidths | LocalizedEdgeWidths) } 1131 * @syscap SystemCapability.ArkUI.ArkUI.Full 1132 * @crossplatform 1133 * @atomicservice 1134 * @since arkts {'1.1':'12','1.2':'20'} 1135 * @arkts 1.1&1.2 1136 */ 1137 borderWidth?: Dimension | EdgeWidths | LocalizedEdgeWidths; 1138 1139 /** 1140 * Defines the alertDialog's border color. 1141 * 1142 * @type { ?(ResourceColor | EdgeColors | LocalizedEdgeColors) } 1143 * @syscap SystemCapability.ArkUI.ArkUI.Full 1144 * @crossplatform 1145 * @atomicservice 1146 * @since arkts {'1.1':'12','1.2':'20'} 1147 * @arkts 1.1&1.2 1148 */ 1149 borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors; 1150 1151 /** 1152 * Defines the alertDialog's border style. 1153 * 1154 * @type { ?(BorderStyle | EdgeStyles) } 1155 * @syscap SystemCapability.ArkUI.ArkUI.Full 1156 * @crossplatform 1157 * @atomicservice 1158 * @since arkts {'1.1':'12','1.2':'20'} 1159 * @arkts 1.1&1.2 1160 */ 1161 borderStyle?: BorderStyle | EdgeStyles; 1162 1163 /** 1164 * Defines the alertDialog's shadow. 1165 * 1166 * @type { ?(ShadowOptions | ShadowStyle) } 1167 * @syscap SystemCapability.ArkUI.ArkUI.Full 1168 * @crossplatform 1169 * @atomicservice 1170 * @since arkts {'1.1':'12','1.2':'20'} 1171 * @arkts 1.1&1.2 1172 */ 1173 shadow?: ShadowOptions | ShadowStyle; 1174 1175 /** 1176 * Set the alertDialog's textStyle. 1177 * 1178 * @type { ?TextStyle } 1179 * @syscap SystemCapability.ArkUI.ArkUI.Full 1180 * @crossplatform 1181 * @atomicservice 1182 * @since arkts {'1.1':'12','1.2':'20'} 1183 * @arkts 1.1&1.2 1184 */ 1185 textStyle?: TextStyle; 1186 1187 /** 1188 * Defines whether to respond to the hover mode. 1189 * 1190 * @type { ?boolean } 1191 * @default false 1192 * @syscap SystemCapability.ArkUI.ArkUI.Full 1193 * @crossplatform 1194 * @atomicservice 1195 * @since arkts {'1.1':'14','1.2':'20'} 1196 * @arkts 1.1&1.2 1197 */ 1198 enableHoverMode?: boolean; 1199 1200 /** 1201 * Defines the alertDialog's display area in hover mode. 1202 * 1203 * @type { ?HoverModeAreaType } 1204 * @default HoverModeAreaType.BOTTOM_SCREEN 1205 * @syscap SystemCapability.ArkUI.ArkUI.Full 1206 * @crossplatform 1207 * @atomicservice 1208 * @since arkts {'1.1':'14','1.2':'20'} 1209 * @arkts 1.1&1.2 1210 */ 1211 hoverModeArea?: HoverModeAreaType; 1212 1213 /** 1214 * Callback function when the dialog appears. 1215 * 1216 * @type { ?Callback<void> } 1217 * @syscap SystemCapability.ArkUI.ArkUI.Full 1218 * @crossplatform 1219 * @atomicservice 1220 * @since arkts {'1.1':'19','1.2':'20'} 1221 * @arkts 1.1&1.2 1222 */ 1223 onDidAppear?: Callback<void>; 1224 1225 /** 1226 * Callback function when the dialog disappears. 1227 * 1228 * @type { ?Callback<void> } 1229 * @syscap SystemCapability.ArkUI.ArkUI.Full 1230 * @crossplatform 1231 * @atomicservice 1232 * @since arkts {'1.1':'19','1.2':'20'} 1233 * @arkts 1.1&1.2 1234 */ 1235 onDidDisappear?: Callback<void>; 1236 1237 /** 1238 * Callback function before the dialog openAnimation starts. 1239 * 1240 * @type { ?Callback<void> } 1241 * @syscap SystemCapability.ArkUI.ArkUI.Full 1242 * @crossplatform 1243 * @atomicservice 1244 * @since arkts {'1.1':'19','1.2':'20'} 1245 * @arkts 1.1&1.2 1246 */ 1247 onWillAppear?: Callback<void>; 1248 1249 /** 1250 * Callback function before the dialog closeAnimation starts. 1251 * 1252 * @type { ?Callback<void> } 1253 * @syscap SystemCapability.ArkUI.ArkUI.Full 1254 * @crossplatform 1255 * @atomicservice 1256 * @since arkts {'1.1':'19','1.2':'20'} 1257 * @arkts 1.1&1.2 1258 */ 1259 onWillDisappear?: Callback<void>; 1260 1261 /** 1262 * Determine the display level of the dialog. 1263 * 1264 * @type { ?LevelMode } 1265 * @default LevelMode.OVERLAY 1266 * @syscap SystemCapability.ArkUI.ArkUI.Full 1267 * @crossplatform 1268 * @atomicservice 1269 * @since arkts {'1.1':'15','1.2':'20'} 1270 * @arkts 1.1&1.2 1271 */ 1272 levelMode?: LevelMode; 1273 1274 /** 1275 * The uniqueId of any node in the router or navigation page. 1276 * 1277 * @type { ?number } 1278 * @syscap SystemCapability.ArkUI.ArkUI.Full 1279 * @crossplatform 1280 * @atomicservice 1281 * @since arkts {'1.1':'15','1.2':'20'} 1282 * @arkts 1.1&1.2 1283 */ 1284 levelUniqueId?: number; 1285 1286 /** 1287 * Determine the immersive mode of the dialog. 1288 * 1289 * @type { ?ImmersiveMode } 1290 * @default ImmersiveMode.DEFAULT 1291 * @syscap SystemCapability.ArkUI.ArkUI.Full 1292 * @crossplatform 1293 * @atomicservice 1294 * @since arkts {'1.1':'15','1.2':'20'} 1295 * @arkts 1.1&1.2 1296 */ 1297 immersiveMode?: ImmersiveMode; 1298 1299 /** 1300 * Determine the display order of the dialog. 1301 * 1302 * @type { ?LevelOrder } 1303 * @default The value returns by LevelOrder.clamp(0) 1304 * @syscap SystemCapability.ArkUI.ArkUI.Full 1305 * @crossplatform 1306 * @atomicservice 1307 * @since arkts {'1.1':'18','1.2':'20'} 1308 * @arkts 1.1&1.2 1309 */ 1310 levelOrder?: LevelOrder; 1311} 1312 1313/** 1314 * Defines the AlertDialog with confirm button. 1315 * 1316 * @extends AlertDialogParam 1317 * @interface AlertDialogParamWithConfirm 1318 * @syscap SystemCapability.ArkUI.ArkUI.Full 1319 * @since 7 1320 */ 1321/** 1322 * Defines the AlertDialog with confirm button. 1323 * 1324 * @extends AlertDialogParam 1325 * @interface AlertDialogParamWithConfirm 1326 * @syscap SystemCapability.ArkUI.ArkUI.Full 1327 * @crossplatform 1328 * @since 10 1329 */ 1330/** 1331 * Defines the AlertDialog with confirm button. 1332 * 1333 * @extends AlertDialogParam 1334 * @interface AlertDialogParamWithConfirm 1335 * @syscap SystemCapability.ArkUI.ArkUI.Full 1336 * @crossplatform 1337 * @atomicservice 1338 * @since arkts {'1.1':'11','1.2':'20'} 1339 * @arkts 1.1&1.2 1340 */ 1341declare interface AlertDialogParamWithConfirm extends AlertDialogParam { 1342 /** 1343 * Invoke the commit function. 1344 * 1345 * @type { ?object } 1346 * @syscap SystemCapability.ArkUI.ArkUI.Full 1347 * @since 7 1348 */ 1349 /** 1350 * Invoke the commit function. 1351 * 1352 * @type { ?object } 1353 * @syscap SystemCapability.ArkUI.ArkUI.Full 1354 * @crossplatform 1355 * @since 10 1356 */ 1357 /** 1358 * Invoke the commit function. 1359 * 1360 * @type { ?object } 1361 * @syscap SystemCapability.ArkUI.ArkUI.Full 1362 * @crossplatform 1363 * @atomicservice 1364 * @since 11 1365 */ 1366 /** 1367 * Invoke the commit function. 1368 * Anonymous Object Rectification. 1369 * 1370 * @type { ?AlertDialogButtonBaseOptions } 1371 * @syscap SystemCapability.ArkUI.ArkUI.Full 1372 * @crossplatform 1373 * @atomicservice 1374 * @since arkts {'1.1':'18','1.2':'20'} 1375 * @arkts 1.1&1.2 1376 */ 1377 confirm?: AlertDialogButtonBaseOptions; 1378} 1379 1380/** 1381 * Component dialog dismiss action. 1382 * 1383 * @interface DismissDialogAction 1384 * @syscap SystemCapability.ArkUI.ArkUI.Full 1385 * @crossplatform 1386 * @atomicservice 1387 * @since arkts {'1.1':'12','1.2':'20'} 1388 * @arkts 1.1&1.2 1389 */ 1390declare interface DismissDialogAction { 1391 /** 1392 * Defines dialog dismiss function. 1393 * 1394 * @type { Callback<void> } 1395 * @syscap SystemCapability.ArkUI.ArkUI.Full 1396 * @crossplatform 1397 * @atomicservice 1398 * @since arkts {'1.1':'12','1.2':'20'} 1399 * @arkts 1.1&1.2 1400 */ 1401 dismiss: Callback<void>; 1402 1403 /** 1404 * Dismiss reason type. 1405 * 1406 * @type { DismissReason } 1407 * @syscap SystemCapability.ArkUI.ArkUI.Full 1408 * @crossplatform 1409 * @atomicservice 1410 * @since arkts {'1.1':'12','1.2':'20'} 1411 * @arkts 1.1&1.2 1412 */ 1413 reason: DismissReason; 1414} 1415 1416/** 1417 * Defines the dialog param with buttons. 1418 * 1419 * @extends AlertDialogParam 1420 * @interface AlertDialogParamWithButtons 1421 * @syscap SystemCapability.ArkUI.ArkUI.Full 1422 * @since 7 1423 */ 1424/** 1425 * Defines the dialog param with buttons. 1426 * 1427 * @extends AlertDialogParam 1428 * @interface AlertDialogParamWithButtons 1429 * @syscap SystemCapability.ArkUI.ArkUI.Full 1430 * @crossplatform 1431 * @since 10 1432 */ 1433/** 1434 * Defines the dialog param with buttons. 1435 * 1436 * @extends AlertDialogParam 1437 * @interface AlertDialogParamWithButtons 1438 * @syscap SystemCapability.ArkUI.ArkUI.Full 1439 * @crossplatform 1440 * @atomicservice 1441 * @since arkts {'1.1':'11','1.2':'20'} 1442 * @arkts 1.1&1.2 1443 */ 1444declare interface AlertDialogParamWithButtons extends AlertDialogParam { 1445 /** 1446 * First button. 1447 * 1448 * @type { object } 1449 * @syscap SystemCapability.ArkUI.ArkUI.Full 1450 * @since 7 1451 */ 1452 /** 1453 * First button. 1454 * 1455 * @type { object } 1456 * @syscap SystemCapability.ArkUI.ArkUI.Full 1457 * @crossplatform 1458 * @since 10 1459 */ 1460 /** 1461 * First button. 1462 * 1463 * @type { object } 1464 * @syscap SystemCapability.ArkUI.ArkUI.Full 1465 * @crossplatform 1466 * @atomicservice 1467 * @since 11 1468 */ 1469 /** 1470 * First button. 1471 * Anonymous Object Rectification. 1472 * 1473 * @type { AlertDialogButtonBaseOptions } 1474 * @syscap SystemCapability.ArkUI.ArkUI.Full 1475 * @crossplatform 1476 * @atomicservice 1477 * @since arkts {'1.1':'18','1.2':'20'} 1478 * @arkts 1.1&1.2 1479 */ 1480 primaryButton: AlertDialogButtonBaseOptions; 1481 1482 /** 1483 * Second button. 1484 * 1485 * @type { object } 1486 * @syscap SystemCapability.ArkUI.ArkUI.Full 1487 * @since 7 1488 */ 1489 /** 1490 * Second button. 1491 * 1492 * @type { object } 1493 * @syscap SystemCapability.ArkUI.ArkUI.Full 1494 * @crossplatform 1495 * @since 10 1496 */ 1497 /** 1498 * Second button. 1499 * 1500 * @type { object } 1501 * @syscap SystemCapability.ArkUI.ArkUI.Full 1502 * @crossplatform 1503 * @atomicservice 1504 * @since 11 1505 */ 1506 /** 1507 * Second button. 1508 * Anonymous Object Rectification. 1509 * 1510 * @type { AlertDialogButtonBaseOptions } 1511 * @syscap SystemCapability.ArkUI.ArkUI.Full 1512 * @crossplatform 1513 * @atomicservice 1514 * @since arkts {'1.1':'18','1.2':'20'} 1515 * @arkts 1.1&1.2 1516 */ 1517 secondaryButton: AlertDialogButtonBaseOptions; 1518} 1519 1520/** 1521 * Defines the dialog param with options. 1522 * 1523 * @extends AlertDialogParam 1524 * @interface AlertDialogParamWithOptions 1525 * @syscap SystemCapability.ArkUI.ArkUI.Full 1526 * @crossplatform 1527 * @since 10 1528 */ 1529/** 1530 * Defines the dialog param with options. 1531 * 1532 * @extends AlertDialogParam 1533 * @interface AlertDialogParamWithOptions 1534 * @syscap SystemCapability.ArkUI.ArkUI.Full 1535 * @crossplatform 1536 * @atomicservice 1537 * @since arkts {'1.1':'11','1.2':'20'} 1538 * @arkts 1.1&1.2 1539 */ 1540declare interface AlertDialogParamWithOptions extends AlertDialogParam { 1541 /** 1542 * The array of buttons. 1543 * @type { Array<AlertDialogButtonOptions> } 1544 * @syscap SystemCapability.ArkUI.ArkUI.Full 1545 * @crossplatform 1546 * @since 10 1547 */ 1548 /** 1549 * The array of buttons. 1550 * @type { Array<AlertDialogButtonOptions> } 1551 * @syscap SystemCapability.ArkUI.ArkUI.Full 1552 * @crossplatform 1553 * @atomicservice 1554 * @since arkts {'1.1':'11','1.2':'20'} 1555 * @arkts 1.1&1.2 1556 */ 1557 buttons: Array<AlertDialogButtonOptions>; 1558 1559 /** 1560 * The arrangement of buttons. 1561 * @type { ?DialogButtonDirection } 1562 * @default DialogButtonDirection.AUTO 1563 * @syscap SystemCapability.ArkUI.ArkUI.Full 1564 * @crossplatform 1565 * @since 10 1566 */ 1567 /** 1568 * The arrangement of buttons. 1569 * @type { ?DialogButtonDirection } 1570 * @default DialogButtonDirection.AUTO 1571 * @syscap SystemCapability.ArkUI.ArkUI.Full 1572 * @crossplatform 1573 * @atomicservice 1574 * @since arkts {'1.1':'11','1.2':'20'} 1575 * @arkts 1.1&1.2 1576 */ 1577 buttonDirection?: DialogButtonDirection; 1578} 1579 1580/** 1581 * Defines AlertDialog which uses show method to show alert dialog. 1582 * 1583 * @syscap SystemCapability.ArkUI.ArkUI.Full 1584 * @since 7 1585 */ 1586/** 1587 * Defines AlertDialog which uses show method to show alert dialog. 1588 * 1589 * @syscap SystemCapability.ArkUI.ArkUI.Full 1590 * @crossplatform 1591 * @since 10 1592 */ 1593/** 1594 * Defines AlertDialog which uses show method to show alert dialog. 1595 * 1596 * @syscap SystemCapability.ArkUI.ArkUI.Full 1597 * @crossplatform 1598 * @atomicservice 1599 * @since 11 1600 */ 1601declare class AlertDialog { 1602 /** 1603 * Invoking method display. 1604 * 1605 * @param { AlertDialogParamWithConfirm | AlertDialogParamWithButtons } value 1606 * @syscap SystemCapability.ArkUI.ArkUI.Full 1607 * @since 7 1608 */ 1609 /** 1610 * Invoking method display. 1611 * 1612 * @param { AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions} value 1613 * @syscap SystemCapability.ArkUI.ArkUI.Full 1614 * @crossplatform 1615 * @since 10 1616 */ 1617 /** 1618 * Invoking method display. 1619 * 1620 * @param { AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions} value 1621 * @syscap SystemCapability.ArkUI.ArkUI.Full 1622 * @crossplatform 1623 * @atomicservice 1624 * @since 11 1625 * @deprecated since 18 1626 * @useinstead ohos.arkui.UIContext.UIContext#showAlertDialog 1627 */ 1628 static show(value: AlertDialogParamWithConfirm | AlertDialogParamWithButtons | AlertDialogParamWithOptions); 1629} 1630 1631