mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
!14846 新增nodeContainer绑定和解绑前后的生命周期回调接口
Merge pull request !14846 from wangxiuxiu96/nodeController
This commit is contained in:
commit
a871570828
26
api/arkui/NodeController.d.ts
vendored
26
api/arkui/NodeController.d.ts
vendored
@ -175,7 +175,29 @@ export abstract class NodeController {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user