add navigation mode change

Signed-off-by: tsj_2020 <tongshijia@huawei.com>
Change-Id: I5b198445a0cd7e8cff05bf305fe35abcc2dde05d
This commit is contained in:
tsj_2020 2023-10-09 14:32:19 +08:00
parent 19c63004f3
commit c66740b498

View File

@ -993,6 +993,17 @@ declare class NavigationAttribute extends CommonMethod<NavigationAttribute> {
*/
onNavBarStateChange(callback: (isVisible: boolean) => void): NavigationAttribute;
/**
* Trigger callback when navigation mode changes.
*
* @param { function } callback
* @returns { NavigationAttribute }
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @since 11
*/
onNavigationModeChange(callback: (mode: NavigationMode) => void): NavigationAttribute;
/**
* Set builder for user-defined NavDestination component.
*