!14846 新增nodeContainer绑定和解绑前后的生命周期回调接口

Merge pull request !14846 from wangxiuxiu96/nodeController
This commit is contained in:
openharmony_ci 2024-11-22 03:04:08 +00:00 committed by Gitee
commit a871570828
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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