add atomicservice tag

Signed-off-by: z30053720 <zhaoyong70@huawei.com>
This commit is contained in:
z30053720 2024-04-29 15:16:26 +08:00
parent 8fea3ca3da
commit 76448ca90e
2 changed files with 73 additions and 0 deletions

View File

@ -224,6 +224,12 @@ export declare class TreeListenerManager {
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @since 10
*/
/**
* Declare TreeView Component
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @atomicservice
* @since 12
*/
@Component
export declare struct TreeView {
/**

View File

@ -24,6 +24,15 @@
* @crossplatform
* @since 10
*/
/**
* Used to do observer layout and draw event for component.
*
* @namespace inspector
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
declare namespace inspector {
/**
@ -32,6 +41,15 @@ declare namespace inspector {
* @crossplatform
* @since 10
*/
/**
* The ComponentObserver is used to listen for layout and draw events.
*
* @interface ComponentObserver
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
interface ComponentObserver {
/**
@ -43,6 +61,16 @@ declare namespace inspector {
* @crossplatform
* @since 10
*/
/**
* Registers a callback with the corresponding query condition by using the handle.
* This callback is triggered when the component layout complete.
* @param { 'layout' } type - type of the listened event.
* @param { function } callback - callback of the listened event.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
on(type: 'layout', callback: () => void): void;
/**
@ -54,6 +82,16 @@ declare namespace inspector {
* @crossplatform
* @since 10
*/
/**
* Deregisters a callback with the corresponding query condition by using the handle.
* This callback is not triggered when the component layout complete.
* @param { 'layout' } type - type of the listened event.
* @param { function } callback - callback of the listened event.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
off(type: 'layout', callback?: () => void): void;
/**
@ -65,6 +103,16 @@ declare namespace inspector {
* @crossplatform
* @since 10
*/
/**
* Registers a callback with the corresponding query condition by using the handle.
* This callback is triggered when the component draw complete.
* @param { 'draw' } type - type of the listened event.
* @param { function } callback - callback of the listened event.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
on(type: 'draw', callback: () => void): void;
/**
@ -76,6 +124,16 @@ declare namespace inspector {
* @crossplatform
* @since 10
*/
/**
* Deregisters a callback with the corresponding query condition by using the handle.
* This callback is not triggered when the component draw complete.
* @param { 'draw' } type - type of the listened event.
* @param { function } callback - callback of the listened event.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
off(type: 'draw', callback?: () => void): void;
}
@ -87,6 +145,15 @@ declare namespace inspector {
* @crossplatform
* @since 10
*/
/**
* Sets the component after layout or draw criteria and returns the corresponding listening handle
* @param { string } id - component id.
* @returns { ComponentObserver } create listener for observer component event.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @crossplatform
* @atomicservice
* @since 12
*/
function createComponentObserver(id: string): ComponentObserver;
}