From 8132d2a71e8dfef50a4e184ff5fb4413561f0d5c Mon Sep 17 00:00:00 2001 From: wangxiuxiu96 Date: Tue, 5 Nov 2024 10:35:28 +0800 Subject: [PATCH] nodecontroller api Signed-off-by: wangxiuxiu96 --- api/arkui/NodeController.d.ts | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/api/arkui/NodeController.d.ts b/api/arkui/NodeController.d.ts index a1963fe63..09e8383f6 100644 --- a/api/arkui/NodeController.d.ts +++ b/api/arkui/NodeController.d.ts @@ -173,9 +173,31 @@ export abstract class NodeController { * @since 14 */ onDetach?(): void; - + /** - * OnBind Method. Executed when the NodeController is bound to a NodeContainer. + * OnWillBind Method. Executed before the NodeController is bound to a NodeContainer. + * + * @param { number } containerId - the uniqueId of the NodeContainer. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + onWillBind?(containerId: number): void; + + /** + * OnWillUnbind Method. Executed before the NodeController is unbind with the NodeContainer. + * + * @param { number } containerId - the uniqueId of the NodeContainer. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + onWillUnbind?(containerId: number): void; + + /** + * OnBind Method. Executed after the NodeController is bound to a NodeContainer. * * @param { number } containerId - the uniqueId of the NodeContainer. * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -186,7 +208,7 @@ export abstract class NodeController { onBind?(containerId: number): void; /** - * OnUnbind Method. Executed when the NodeController is unbind with the NodeContainer. + * OnUnbind Method. Executed after the NodeController is unbind with the NodeContainer. * * @param { number } containerId - the uniqueId of the NodeContainer. * @syscap SystemCapability.ArkUI.ArkUI.Full