diff --git a/api/@ohos.arkui.advanced.MultiNavigation.static.d.ets b/api/@ohos.arkui.advanced.MultiNavigation.static.d.ets index 19432c86c6f5a318637b39a3e4c0d8df31128901..ab4b8ba6172abbc1cbd3561567dc36038173aa17 100644 --- a/api/@ohos.arkui.advanced.MultiNavigation.static.d.ets +++ b/api/@ohos.arkui.advanced.MultiNavigation.static.d.ets @@ -126,7 +126,6 @@ export declare struct MultiNavigation { /** * The method to build multiNavigation. * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice * @since 20 */ @Builder @@ -238,22 +237,22 @@ export declare class MultiNavPathStack extends NavPathStack { /** * Remove the specified NavDestinations by indexes. * - * @param { Array } indexes - Indicates the indexes of the NavDestinations to be removed. - * @returns { number } Returns the number of removed pages. Invalid indexes will be ignored. + * @param { Array } indexes - Indicates the indexes of the NavDestinations to be removed. + * @returns { int } Returns the number of removed pages. Invalid indexes will be ignored. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - removeByIndexes(indexes: Array): number; + removeByIndexes(indexes: Array): int; /** * Remove the specified NavDestination by name. * * @param { string } name - Indicates the name of the NavDestination to be removed. - * @returns { number } Returns the number of removed NavDestinations. + * @returns { int } Returns the number of removed NavDestinations. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - removeByName(name: string): number; + removeByName(name: string): int; /** * Pop the top NavDestination of the stack. @@ -285,11 +284,11 @@ export declare class MultiNavPathStack extends NavPathStack { * * @param { string } name - Name of the NavDestination. * @param { boolean } [animated] - Indicates whether the transition is animated. - * @returns { number } Returns the index of the NavDestination if it exists in the stack, otherwise returns -1. + * @returns { int } Returns the index of the NavDestination if it exists in the stack, otherwise returns -1. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - popToName(name: string, animated?: boolean): number; + popToName(name: string, animated?: boolean): int; /** * Pop to the NavDestination of specified name. Always the first one @@ -298,32 +297,32 @@ export declare class MultiNavPathStack extends NavPathStack { * @param { string } name - Name of the NavDestination. * @param { Object } result - Page Customization processing results. * @param { boolean } [animated] - Indicates whether the transition is animated. - * @returns { number } Returns the index of the NavDestination if it exists in the stack, otherwise returns -1. + * @returns { int } Returns the index of the NavDestination if it exists in the stack, otherwise returns -1. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - popToName(name: string, result: Object, animated?: boolean): number; + popToName(name: string, result: Object, animated?: boolean): int; /** * Pop to the NavDestination of specified index. Do nothing if index is invalid. * - * @param { number } index - The index of NavDestination page. + * @param { int } index - The index of NavDestination page. * @param { boolean } [animated] - Indicates whether the transition is animated. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - popToIndex(index: number, animated?: boolean): void; + popToIndex(index: int, animated?: boolean): void; /** * Pop to the NavDestination of specified index. Do nothing if index is invalid. * - * @param { number } index - The index of NavDestination page. + * @param { int } index - The index of NavDestination page. * @param { Object } result - Page Customization processing results. * @param { boolean } [animated] - Indicates whether the transition is animated. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - popToIndex(index: number, result: Object, animated?: boolean): void; + popToIndex(index: int, result: Object, animated?: boolean): void; /** * Move the first NavDestination of specified name to the top of the stack. Always the first one @@ -331,21 +330,21 @@ export declare class MultiNavPathStack extends NavPathStack { * * @param { string } name - Indicates the name of the NavDestination to be moved to the top. * @param { boolean } [animated] - Indicates whether the transition is animated. - * @returns { number } Returns the index of the NavDestination if it exists in the stack, otherwise returns -1. + * @returns { int } Returns the index of the NavDestination if it exists in the stack, otherwise returns -1. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - moveToTop(name: string, animated?: boolean): number; + moveToTop(name: string, animated?: boolean): int; /** * Move the first NavDestination of specified index to the top of the stack. * - * @param { number } index - Indicates the index of the NavDestination to be moved to the top. + * @param { int } index - Indicates the index of the NavDestination to be moved to the top. * @param { boolean } [animated] - Indicates whether the transition is animated. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - moveIndexToTop(index: number, animated?: boolean): void; + moveIndexToTop(index: int, animated?: boolean): void; /** * Clear the stack. When keepBottomPage sets true, the page at the bottom of the @@ -369,13 +368,13 @@ export declare class MultiNavPathStack extends NavPathStack { /** * Obtains parameter information of the NavDestination page specified by index. * - * @param { number } index - The index of NavDestination page. + * @param { int } index - The index of NavDestination page. * @returns { Object | undefined } Returns the detailed parameter of the NavDestination * if it exists in the stack, otherwise returns undefined. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getParamByIndex(index: number): Object | undefined; + getParamByIndex(index: int): Object | undefined; /** * Obtains parameter information of all NavDestination pages specified by name. @@ -391,20 +390,20 @@ export declare class MultiNavPathStack extends NavPathStack { * Obtains the index of all NavDestination pages specified by name. * * @param { string } name - Indicates the name of the NavDestination. - * @returns { Array } Returns the index of all the NavDestinations. + * @returns { Array } Returns the index of all the NavDestinations. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - getIndexByName(name: string): Array; + getIndexByName(name: string): Array; /** * Obtains the size of the stack. * - * @returns { number } Returns the size of the stack. + * @returns { int } Returns the size of the stack. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - size(): number; + size(): int; /** * disable or enable all transition animation in this MultiNavigation.