1/* 2 * Copyright (c) 2022-2024 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/** 22 * Defines the navigation destination common title. 23 * 24 * @interface NavDestinationCommonTitle 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @since 9 27 */ 28/** 29 * Defines the navigation destination common title. 30 * 31 * @interface NavDestinationCommonTitle 32 * @syscap SystemCapability.ArkUI.ArkUI.Full 33 * @crossplatform 34 * @since 10 35 */ 36/** 37 * Defines the navigation destination common title. 38 * 39 * @interface NavDestinationCommonTitle 40 * @syscap SystemCapability.ArkUI.ArkUI.Full 41 * @crossplatform 42 * @atomicservice 43 * @since 11 44 */ 45declare interface NavDestinationCommonTitle { 46 /** 47 * Sets the main title. 48 * 49 * @type { string } 50 * @syscap SystemCapability.ArkUI.ArkUI.Full 51 * @since 9 52 */ 53 /** 54 * Sets the main title. 55 * 56 * @type { string } 57 * @syscap SystemCapability.ArkUI.ArkUI.Full 58 * @crossplatform 59 * @since 10 60 */ 61 /** 62 * Sets the main title. 63 * 64 * @type { string } 65 * @syscap SystemCapability.ArkUI.ArkUI.Full 66 * @crossplatform 67 * @atomicservice 68 * @since 11 69 */ 70 /** 71 * Sets the main title. 72 * 73 * @type { string | Resource } 74 * @syscap SystemCapability.ArkUI.ArkUI.Full 75 * @crossplatform 76 * @atomicservice 77 * @since 14 78 */ 79 main: string | Resource; 80 81 /** 82 * Sets the sub title. 83 * 84 * @type { string } 85 * @syscap SystemCapability.ArkUI.ArkUI.Full 86 * @since 9 87 */ 88 /** 89 * Sets the sub title. 90 * 91 * @type { string } 92 * @syscap SystemCapability.ArkUI.ArkUI.Full 93 * @crossplatform 94 * @since 10 95 */ 96 /** 97 * Sets the sub title. 98 * 99 * @type { string } 100 * @syscap SystemCapability.ArkUI.ArkUI.Full 101 * @crossplatform 102 * @atomicservice 103 * @since 11 104 */ 105 /** 106 * Sets the sub title. 107 * 108 * @type { string | Resource } 109 * @syscap SystemCapability.ArkUI.ArkUI.Full 110 * @crossplatform 111 * @atomicservice 112 * @since 14 113 */ 114 sub: string | Resource; 115} 116 117/** 118 * Defines the navigation destination custom title. 119 * 120 * @interface NavDestinationCustomTitle 121 * @syscap SystemCapability.ArkUI.ArkUI.Full 122 * @since 9 123 */ 124/** 125 * Defines the navigation destination custom title. 126 * 127 * @interface NavDestinationCustomTitle 128 * @syscap SystemCapability.ArkUI.ArkUI.Full 129 * @crossplatform 130 * @since 10 131 */ 132/** 133 * Defines the navigation destination custom title. 134 * 135 * @interface NavDestinationCustomTitle 136 * @syscap SystemCapability.ArkUI.ArkUI.Full 137 * @crossplatform 138 * @atomicservice 139 * @since 11 140 */ 141declare interface NavDestinationCustomTitle { 142 /** 143 * Sets the custom title builder. 144 * 145 * @type { CustomBuilder } 146 * @syscap SystemCapability.ArkUI.ArkUI.Full 147 * @since 9 148 */ 149 /** 150 * Sets the custom title builder. 151 * 152 * @type { CustomBuilder } 153 * @syscap SystemCapability.ArkUI.ArkUI.Full 154 * @crossplatform 155 * @since 10 156 */ 157 /** 158 * Sets the custom title builder. 159 * 160 * @type { CustomBuilder } 161 * @syscap SystemCapability.ArkUI.ArkUI.Full 162 * @crossplatform 163 * @atomicservice 164 * @since 11 165 */ 166 builder: CustomBuilder; 167 168 /** 169 * Sets the custom title height. 170 * 171 * @type { TitleHeight | Length } 172 * @syscap SystemCapability.ArkUI.ArkUI.Full 173 * @since 9 174 */ 175 /** 176 * Sets the custom title height. 177 * 178 * @type { TitleHeight | Length } 179 * @syscap SystemCapability.ArkUI.ArkUI.Full 180 * @crossplatform 181 * @since 10 182 */ 183 /** 184 * Sets the custom title height. 185 * 186 * @type { TitleHeight | Length } 187 * @syscap SystemCapability.ArkUI.ArkUI.Full 188 * @crossplatform 189 * @atomicservice 190 * @since 11 191 */ 192 height: TitleHeight | Length; 193} 194 195/** 196 * Types of system Transition. 197 * 198 * @enum { number } 199 * @syscap SystemCapability.ArkUI.ArkUI.Full 200 * @crossplatform 201 * @atomicservice 202 * @since 14 203 */ 204declare enum NavigationSystemTransitionType { 205 /** 206 * Default system transition. 207 * 208 * @syscap SystemCapability.ArkUI.ArkUI.Full 209 * @crossplatform 210 * @atomicservice 211 * @since 14 212 */ 213 DEFAULT = 0, 214 /** 215 * None system transition. 216 * 217 * @syscap SystemCapability.ArkUI.ArkUI.Full 218 * @crossplatform 219 * @atomicservice 220 * @since 14 221 */ 222 NONE = 1, 223 /** 224 * Configure only titlebar transition. 225 * 226 * @syscap SystemCapability.ArkUI.ArkUI.Full 227 * @crossplatform 228 * @atomicservice 229 * @since 14 230 */ 231 TITLE = 2, 232 /** 233 * Configure only content transition. 234 * 235 * @syscap SystemCapability.ArkUI.ArkUI.Full 236 * @crossplatform 237 * @atomicservice 238 * @since 14 239 */ 240 CONTENT = 3, 241} 242 243/** 244 * NavDestination mode. 245 * 246 * @enum { number } 247 * @syscap SystemCapability.ArkUI.ArkUI.Full 248 * @crossplatform 249 * @since 11 250 */ 251/** 252 * NavDestination mode. 253 * 254 * @enum { number } 255 * @syscap SystemCapability.ArkUI.ArkUI.Full 256 * @crossplatform 257 * @atomicservice 258 * @since 12 259 */ 260declare enum NavDestinationMode { 261 /** 262 * Standard mode is default mode of NavDestination. 263 * 264 * @syscap SystemCapability.ArkUI.ArkUI.Full 265 * @crossplatform 266 * @since 11 267 */ 268 /** 269 * Standard mode is default mode of NavDestination. 270 * 271 * @syscap SystemCapability.ArkUI.ArkUI.Full 272 * @crossplatform 273 * @atomicservice 274 * @since 12 275 */ 276 STANDARD = 0, 277 278 /** 279 * Dialog mode is transparent by default and does not affect the life cycle of other NavDestination. 280 * 281 * @syscap SystemCapability.ArkUI.ArkUI.Full 282 * @crossplatform 283 * @since 11 284 */ 285 /** 286 * Dialog mode is transparent by default and does not affect the life cycle of other NavDestination. 287 * 288 * @syscap SystemCapability.ArkUI.ArkUI.Full 289 * @crossplatform 290 * @atomicservice 291 * @since 12 292 */ 293 DIALOG = 1, 294} 295 296/** 297 * The construct function of NavDestination. 298 * 299 * @interface NavDestinationInterface 300 * @syscap SystemCapability.ArkUI.ArkUI.Full 301 * @since 9 302 */ 303/** 304 * The construct function of NavDestination. 305 * 306 * @interface NavDestinationInterface 307 * @syscap SystemCapability.ArkUI.ArkUI.Full 308 * @crossplatform 309 * @since 10 310 */ 311/** 312 * The construct function of NavDestination. 313 * 314 * @interface NavDestinationInterface 315 * @syscap SystemCapability.ArkUI.ArkUI.Full 316 * @crossplatform 317 * @atomicservice 318 * @since 11 319 */ 320declare interface NavDestinationInterface { 321 /** 322 * Constructor. 323 * 324 * @returns { NavDestinationAttribute } 325 * @syscap SystemCapability.ArkUI.ArkUI.Full 326 * @since 9 327 */ 328 /** 329 * Constructor. 330 * 331 * @returns { NavDestinationAttribute } 332 * @syscap SystemCapability.ArkUI.ArkUI.Full 333 * @crossplatform 334 * @since 10 335 */ 336 /** 337 * Constructor. 338 * 339 * @returns { NavDestinationAttribute } 340 * @syscap SystemCapability.ArkUI.ArkUI.Full 341 * @crossplatform 342 * @atomicservice 343 * @since 11 344 */ 345 (): NavDestinationAttribute; 346} 347 348/** 349 * Indicates configuration info of destination. 350 * 351 * @interface RouteMapConfig 352 * @syscap SystemCapability.ArkUI.ArkUI.Full 353 * @crossplatform 354 * @atomicservice 355 * @since 12 356 */ 357declare interface RouteMapConfig { 358 /** 359 * Get destination name. 360 * 361 * @type { string } 362 * @syscap SystemCapability.ArkUI.ArkUI.Full 363 * @crossplatform 364 * @atomicservice 365 * @since 12 366 */ 367 name: string; 368 369 /** 370 * Get destination builder file position 371 * 372 * @type { string } 373 * @syscap SystemCapability.ArkUI.ArkUI.Full 374 * @crossplatform 375 * @atomicservice 376 * @since 12 377 */ 378 pageSourceFile: string; 379 380 /** 381 * Indicate the custom data of current destination. 382 * 383 * @type { Object } 384 * @syscap SystemCapability.ArkUI.ArkUI.Full 385 * @crossplatform 386 * @atomicservice 387 * @since 12 388 */ 389 data: Object 390} 391 392/** 393 * Indicates the context of NavDestination. 394 * 395 * @interface NavDestinationContext 396 * @syscap SystemCapability.ArkUI.ArkUI.Full 397 * @crossplatform 398 * @atomicservice 399 * @since 11 400 */ 401declare interface NavDestinationContext { 402 /** 403 * Get path info. 404 * 405 * @type { NavPathInfo } 406 * @syscap SystemCapability.ArkUI.ArkUI.Full 407 * @crossplatform 408 * @atomicservice 409 * @since 11 410 */ 411 pathInfo: NavPathInfo; 412 413 /** 414 * Get stack of the Navigation where the NavDestination is located. 415 * 416 * @type { NavPathStack } 417 * @syscap SystemCapability.ArkUI.ArkUI.Full 418 * @crossplatform 419 * @atomicservice 420 * @since 11 421 */ 422 pathStack: NavPathStack; 423 424 /** 425 * Get the unique id of NavDestination, which is different from common property id of Component. 426 * 427 * @type { ?string } 428 * @syscap SystemCapability.ArkUI.ArkUI.Full 429 * @crossplatform 430 * @atomicservice 431 * @since 12 432 */ 433 navDestinationId?: string; 434 435 /** 436 * Get configuration of current Destination in module.json 437 * 438 * @returns {RouteMapConfig | undefined} 439 * 440 * @syscap SystemCapability.ArkUI.ArkUI.Full 441 * @crossplatform 442 * @atomicservice 443 * @since 12 444 */ 445 getConfigInRouteMap(): RouteMapConfig | undefined; 446} 447 448/** 449 * Indicates the nested scrollable container components. 450 * 451 * @interface NestedScrollInfo 452 * @syscap SystemCapability.ArkUI.ArkUI.Full 453 * @crossplatform 454 * @atomicservice 455 * @since 14 456 */ 457declare interface NestedScrollInfo { 458 /** 459 * The controller of parent scrollable container component. 460 * 461 * @type { Scroller } 462 * @syscap SystemCapability.ArkUI.ArkUI.Full 463 * @crossplatform 464 * @atomicservice 465 * @since 14 466 */ 467 parent: Scroller; 468 469 /** 470 * The controller of child scrollable container component. 471 * 472 * @type { Scroller } 473 * @syscap SystemCapability.ArkUI.ArkUI.Full 474 * @crossplatform 475 * @atomicservice 476 * @since 14 477 */ 478 child: Scroller; 479} 480 481/** 482 * The attribute function of NavDestination 483 * 484 * @extends CommonMethod<NavDestinationAttribute> 485 * @syscap SystemCapability.ArkUI.ArkUI.Full 486 * @since 9 487 */ 488/** 489 * The attribute function of NavDestination 490 * 491 * @extends CommonMethod<NavDestinationAttribute> 492 * @syscap SystemCapability.ArkUI.ArkUI.Full 493 * @crossplatform 494 * @since 10 495 */ 496/** 497 * The attribute function of NavDestination 498 * 499 * @extends CommonMethod<NavDestinationAttribute> 500 * @syscap SystemCapability.ArkUI.ArkUI.Full 501 * @crossplatform 502 * @atomicservice 503 * @since 11 504 */ 505declare class NavDestinationAttribute extends CommonMethod<NavDestinationAttribute> { 506 /** 507 * Navigation title bar 508 * 509 * @param { string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle } value 510 * @returns { NavDestinationAttribute } 511 * @syscap SystemCapability.ArkUI.ArkUI.Full 512 * @since 9 513 */ 514 /** 515 * Navigation title bar 516 * 517 * @param { string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle } value 518 * @returns { NavDestinationAttribute } 519 * @syscap SystemCapability.ArkUI.ArkUI.Full 520 * @crossplatform 521 * @since 10 522 */ 523 /** 524 * Navigation title bar 525 * 526 * @param { string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle } value 527 * @returns { NavDestinationAttribute } 528 * @syscap SystemCapability.ArkUI.ArkUI.Full 529 * @crossplatform 530 * @atomicservice 531 * @since 11 532 */ 533 /** 534 * NavDestination title bar 535 * 536 * @param { string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle } value 537 * @param { NavigationTitleOptions } [options] - Indicates the options of titlebar. 538 * @returns { NavDestinationAttribute } 539 * @syscap SystemCapability.ArkUI.ArkUI.Full 540 * @crossplatform 541 * @atomicservice 542 * @since 12 543 */ 544 /** 545 * NavDestination title bar 546 * 547 * @param { string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource } value 548 * @param { NavigationTitleOptions } [options] - Indicates the options of titlebar. 549 * @returns { NavDestinationAttribute } 550 * @syscap SystemCapability.ArkUI.ArkUI.Full 551 * @crossplatform 552 * @atomicservice 553 * @since 14 554 */ 555 title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, 556 options?: NavigationTitleOptions): NavDestinationAttribute; 557 558 /** 559 * Hide navigation title bar 560 * 561 * @param { boolean } value 562 * @returns { NavDestinationAttribute } 563 * @syscap SystemCapability.ArkUI.ArkUI.Full 564 * @since 9 565 */ 566 /** 567 * Hide navigation title bar 568 * 569 * @param { boolean } value 570 * @returns { NavDestinationAttribute } 571 * @syscap SystemCapability.ArkUI.ArkUI.Full 572 * @crossplatform 573 * @since 10 574 */ 575 /** 576 * Hide navigation title bar 577 * 578 * @param { boolean } value 579 * @returns { NavDestinationAttribute } 580 * @syscap SystemCapability.ArkUI.ArkUI.Full 581 * @crossplatform 582 * @atomicservice 583 * @since 11 584 */ 585 hideTitleBar(value: boolean): NavDestinationAttribute; 586 587 /** 588 * Hide navigation title bar 589 * 590 * @param { boolean } hide 591 * @param { boolean } animated 592 * @returns { NavDestinationAttribute } 593 * @syscap SystemCapability.ArkUI.ArkUI.Full 594 * @crossplatform 595 * @atomicservice 596 * @since 13 597 */ 598 hideTitleBar(hide: boolean, animated: boolean): NavDestinationAttribute; 599 600 /** 601 * Invoked when the navDestination page is displayed. 602 * 603 * @param { function } callback - Indicates callback when the navDestination page is displayed. 604 * @returns { NavDestinationAttribute } 605 * @syscap SystemCapability.ArkUI.ArkUI.Full 606 * @crossplatform 607 * @since 10 608 */ 609 /** 610 * Invoked when the navDestination page is displayed. 611 * 612 * @param { function } callback - Indicates callback when the navDestination page is displayed. 613 * @returns { NavDestinationAttribute } 614 * @syscap SystemCapability.ArkUI.ArkUI.Full 615 * @crossplatform 616 * @atomicservice 617 * @since 11 618 */ 619 onShown(callback: () => void): NavDestinationAttribute; 620 621 /** 622 * Invoked when the navDestination is hidden. 623 * 624 * @param { function } callback - Indicates callback when the navDestination is hidden. 625 * @returns { NavDestinationAttribute } 626 * @syscap SystemCapability.ArkUI.ArkUI.Full 627 * @crossplatform 628 * @since 10 629 */ 630 /** 631 * Invoked when the navDestination is hidden. 632 * 633 * @param { function } callback - Indicates callback when the navDestination is hidden. 634 * @returns { NavDestinationAttribute } 635 * @syscap SystemCapability.ArkUI.ArkUI.Full 636 * @crossplatform 637 * @atomicservice 638 * @since 11 639 */ 640 onHidden(callback: () => void): NavDestinationAttribute; 641 642 /** 643 * Invoked when the backButton is pressed. 644 * 645 * @param { function } callback - Indicates callback when the backButton is pressed. 646 * @returns { NavDestinationAttribute } 647 * @syscap SystemCapability.ArkUI.ArkUI.Full 648 * @crossplatform 649 * @since 10 650 */ 651 /** 652 * Invoked when the backButton is pressed. 653 * 654 * @param { function } callback - Indicates callback when the backButton is pressed. 655 * @returns { NavDestinationAttribute } 656 * @syscap SystemCapability.ArkUI.ArkUI.Full 657 * @crossplatform 658 * @atomicservice 659 * @since 11 660 */ 661 onBackPressed(callback: () => boolean): NavDestinationAttribute; 662 663 /** 664 * Sets the different mode of NavDestination. 665 * 666 * @param { NavDestinationMode } value - NavDestinationMode 667 * @returns { NavDestinationAttribute } 668 * @syscap SystemCapability.ArkUI.ArkUI.Full 669 * @crossplatform 670 * @since 11 671 */ 672 /** 673 * Sets the different mode of NavDestination. 674 * 675 * @param { NavDestinationMode } value - NavDestinationMode 676 * @returns { NavDestinationAttribute } 677 * @syscap SystemCapability.ArkUI.ArkUI.Full 678 * @crossplatform 679 * @atomicservice 680 * @since 12 681 */ 682 mode(value: NavDestinationMode): NavDestinationAttribute; 683 684 /** 685 * Set back button icon. 686 * 687 * @param { ResourceStr | PixelMap } value - Indicates icon of back button. 688 * @returns { NavDestinationAttribute } 689 * @syscap SystemCapability.ArkUI.ArkUI.Full 690 * @crossplatform 691 * @since 11 692 */ 693 /** 694 * Set back button icon. 695 * 696 * @param { ResourceStr | PixelMap | SymbolGlyphModifier } value - Indicates icon of back button. 697 * @returns { NavDestinationAttribute } 698 * @syscap SystemCapability.ArkUI.ArkUI.Full 699 * @crossplatform 700 * @atomicservice 701 * @since 12 702 */ 703 backButtonIcon(value: ResourceStr | PixelMap | SymbolGlyphModifier): NavDestinationAttribute; 704 705 /** 706 * NavDestination title bar's menus 707 * 708 * @param { Array<NavigationMenuItem> | CustomBuilder } value 709 * @returns { NavDestinationAttribute } 710 * @syscap SystemCapability.ArkUI.ArkUI.Full 711 * @crossplatform 712 * @atomicservice 713 * @since 12 714 */ 715 menus(value: Array<NavigationMenuItem> | CustomBuilder): NavDestinationAttribute; 716 717 /** 718 * Configure toolbar with default style parameter or custom parameter. 719 * 720 * @param { Array<ToolbarItem> | CustomBuilder } toolbarParam - Toolbar configuration parameters. 721 * @param { NavigationToolbarOptions } [options] - Indicates the options of toolbar. 722 * @returns { NavDestinationAttribute } 723 * @syscap SystemCapability.ArkUI.ArkUI.Full 724 * @crossplatform 725 * @atomicservice 726 * @since 13 727 */ 728 toolbarConfiguration(toolbarParam: Array<ToolbarItem> | CustomBuilder, options?: NavigationToolbarOptions): NavDestinationAttribute; 729 730 /** 731 * Hide tool bar 732 * 733 * @param { boolean } hide 734 * @param { boolean } [animated] 735 * @returns { NavDestinationAttribute } 736 * @syscap SystemCapability.ArkUI.ArkUI.Full 737 * @crossplatform 738 * @atomicservice 739 * @since 13 740 */ 741 hideToolBar(hide: boolean, animated?: boolean): NavDestinationAttribute; 742 743 /** 744 * Invoked before sub-components of NavDestination are created. 745 * 746 * @param { import('../api/@ohos.base').Callback<NavDestinationContext> } callback 747 * - Indicates callback that invoked before sub-components of NavDestination are created. 748 * @returns { NavDestinationAttribute } 749 * @syscap SystemCapability.ArkUI.ArkUI.Full 750 * @crossplatform 751 * @atomicservice 752 * @since 11 753 */ 754 onReady(callback: import('../api/@ohos.base').Callback<NavDestinationContext>): NavDestinationAttribute; 755 756 /** 757 * Invoked before the navDestination is appeared. 758 * 759 * @param { Callback<void> } callback - Indicates callback before the navDestination is appeared. 760 * @returns { NavDestinationAttribute } 761 * @syscap SystemCapability.ArkUI.ArkUI.Full 762 * @crossplatform 763 * @atomicservice 764 * @since 12 765 */ 766 onWillAppear(callback: Callback<void>): NavDestinationAttribute; 767 768 /** 769 * Invoked before the navDestination is disappeared. 770 * 771 * @param { Callback<void> } callback - Indicates callback before the navDestination is disappeared. 772 * @returns { NavDestinationAttribute } 773 * @syscap SystemCapability.ArkUI.ArkUI.Full 774 * @crossplatform 775 * @atomicservice 776 * @since 12 777 */ 778 onWillDisappear(callback: Callback<void>): NavDestinationAttribute; 779 780 /** 781 * Invoked before the navDestination is displayed. 782 * 783 * @param { Callback<void> } callback - Indicates callback before the navDestination is displayed. 784 * @returns { NavDestinationAttribute } 785 * @syscap SystemCapability.ArkUI.ArkUI.Full 786 * @crossplatform 787 * @atomicservice 788 * @since 12 789 */ 790 onWillShow(callback: Callback<void>): NavDestinationAttribute; 791 792 /** 793 * Invoked before the navDestination is hidden. 794 * 795 * @param { Callback<void> } callback - Indicates callback before the navDestination is hidden. 796 * @returns { NavDestinationAttribute } 797 * @syscap SystemCapability.ArkUI.ArkUI.Full 798 * @crossplatform 799 * @atomicservice 800 * @since 12 801 */ 802 onWillHide(callback: Callback<void>): NavDestinationAttribute; 803 804 /** 805 * Set navDestination content expand types and edges. 806 * 807 * @param { Array<LayoutSafeAreaType> } [types] - Indicates the types of the safe area. 808 * @param { Array<LayoutSafeAreaEdge> } [edges] - Indicates the edges of the safe area. 809 * @returns { NavDestinationAttribute } 810 * @syscap SystemCapability.ArkUI.ArkUI.Full 811 * @crossplatform 812 * @atomicservice 813 * @since 12 814 */ 815 ignoreLayoutSafeArea(types?: Array<LayoutSafeAreaType>, edges?: Array<LayoutSafeAreaEdge>): NavDestinationAttribute; 816 817 /** 818 * Set the style of system bar 819 * 820 * @param { Optional<SystemBarStyle> } style - The properties of system bar 821 * @returns { NavDestinationAttribute } 822 * @syscap SystemCapability.ArkUI.ArkUI.Full 823 * @atomicservice 824 * @since 12 825 */ 826 systemBarStyle(style: Optional<SystemBarStyle>): NavDestinationAttribute; 827 828 /** 829 * Configuration of system transition 830 * 831 * @param { NavigationSystemTransitionType } type - Types of system Transition 832 * @returns { NavDestinationAttribute } 833 * @syscap SystemCapability.ArkUI.ArkUI.Full 834 * @crossplatform 835 * @atomicservice 836 * @since 14 837 */ 838 systemTransition(type: NavigationSystemTransitionType): NavDestinationAttribute; 839 840 /** 841 * Set the NavDestination can be restored after the application is terminated. 842 * To enable this attribute, recoverable and id of Navigation must be set. 843 * 844 * @param { boolean } recoverable - set navdestination can be recovered. 845 * @returns { NavDestinationAttribute } 846 * @syscap SystemCapability.ArkUI.ArkUI.Full 847 * @since 14 848 */ 849 recoverable(recoverable: Optional<boolean>): NavDestinationAttribute; 850 851 /** 852 * Bind NavDestination to scrollable container components to automatically hide titlebar and toolbar. 853 * 854 * @param { Array<Scroller> } scrollers - The controllers of the scrollable container components. 855 * @returns { NavDestinationAttribute } Returns the instance of the NavDestinationAttribute. 856 * @syscap SystemCapability.ArkUI.ArkUI.Full 857 * @crossplatform 858 * @atomicservice 859 * @since 14 860 */ 861 bindToScrollable(scrollers: Array<Scroller>): NavDestinationAttribute; 862 863 /** 864 * Bind NavDestination to nested scrollable container components to automatically hide titlebar and toolbar. 865 * 866 * @param { Array<NestedScrollInfo> } scrollInfos - The controllers of the nested scrollable container components. 867 * @returns { NavDestinationAttribute } Returns the instance of the NavDestinationAttribute. 868 * @syscap SystemCapability.ArkUI.ArkUI.Full 869 * @crossplatform 870 * @atomicservice 871 * @since 14 872 */ 873 bindToNestedScrollable(scrollInfos: Array<NestedScrollInfo>): NavDestinationAttribute; 874} 875 876/** 877 * Defines NavDestination Component. 878 * 879 * @syscap SystemCapability.ArkUI.ArkUI.Full 880 * @since 9 881 */ 882/** 883 * Defines NavDestination Component. 884 * 885 * @syscap SystemCapability.ArkUI.ArkUI.Full 886 * @crossplatform 887 * @since 10 888 */ 889/** 890 * Defines NavDestination Component. 891 * 892 * @syscap SystemCapability.ArkUI.ArkUI.Full 893 * @crossplatform 894 * @atomicservice 895 * @since 11 896 */ 897declare const NavDestination: NavDestinationInterface; 898 899/** 900 * Defines NavDestination Component instance. 901 * 902 * @syscap SystemCapability.ArkUI.ArkUI.Full 903 * @since 9 904 */ 905/** 906 * Defines NavDestination Component instance. 907 * 908 * @syscap SystemCapability.ArkUI.ArkUI.Full 909 * @crossplatform 910 * @since 10 911 */ 912/** 913 * Defines NavDestination Component instance. 914 * 915 * @syscap SystemCapability.ArkUI.ArkUI.Full 916 * @crossplatform 917 * @atomicservice 918 * @since 11 919 */ 920declare const NavDestinationInstance: NavDestinationAttribute; 921