diff --git a/api/@internal/component/ets/inspector.d.ts b/api/@internal/component/ets/inspector.d.ts index b5ba36dd3842a5a346836d58a3f01a29d900478b..aa2ba50e3704331504b3fe8e50aa19cd802708ed 100644 --- a/api/@internal/component/ets/inspector.d.ts +++ b/api/@internal/component/ets/inspector.d.ts @@ -49,9 +49,8 @@ declare function getInspectorNodeById(id: number): object; * @namespace Profiler * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'8','1.2':'20'} + * @since 8 * @test - * @arkts 1.1&1.2 */ declare namespace Profiler { /** @@ -60,9 +59,8 @@ declare namespace Profiler { * @param { function } callback - the callback info is json string with ui update info. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'8','1.2':'20'} + * @since 8 * @test - * @arkts 1.1&1.2 */ function registerVsyncCallback(callback: (info: string) => void): void; @@ -71,9 +69,8 @@ declare namespace Profiler { * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'8','1.2':'20'} + * @since 8 * @test - * @arkts 1.1&1.2 */ function unregisterVsyncCallback(): void; } @@ -84,8 +81,7 @@ declare namespace Profiler { * @param { string } value * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi - * @since arkts {'1.1':'8','1.2':'20'} + * @since 8 * @test - * @arkts 1.1&1.2 */ declare function setAppBgColor(value: string): void; diff --git a/api/@ohos.arkui.component.d.ets b/api/@ohos.arkui.component.d.ets index a0fe3c2371592461fd29063e99add539952569be..53251f75993f8042e3e69189fd4138d5588680d6 100644 --- a/api/@ohos.arkui.component.d.ets +++ b/api/@ohos.arkui.component.d.ets @@ -71,12 +71,12 @@ export * from './arkui/component/gridCol'; export * from './arkui/component/gridRow'; export * from './arkui/component/gridItem'; export * from './arkui/component/hyperlink'; +export * from './arkui/component/inspector'; export * from './arkui/component/image'; export * from './arkui/component/imageAnimator'; export * from './arkui/component/imageCommon'; export * from './arkui/component/imageSpan'; export * from './arkui/component/indicatorcomponent'; -export * from './arkui/component/inspector'; export * from './arkui/component/interop'; export * from './arkui/component/lazyForEach'; export * from './arkui/component/line'; diff --git a/api/arkui/component/common.static.d.ets b/api/arkui/component/common.static.d.ets index 31b466c06d64602614419e728f0cf9032ef16383..f26f4c6d03a514674370cae743a69e63a8899703 100644 --- a/api/arkui/component/common.static.d.ets +++ b/api/arkui/component/common.static.d.ets @@ -15276,11 +15276,11 @@ export declare interface TerminationInfo { /** * Defines the termination code. * - * @type { number } + * @type { int } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 20 */ - code: number; + code: int; /** * Defines the additional termination information. * diff --git a/api/arkui/component/inspector.static.d.ets b/api/arkui/component/inspector.static.d.ets new file mode 100644 index 0000000000000000000000000000000000000000..47643fcf2804c34ea3129eba21ff3b5ce5e19197 --- /dev/null +++ b/api/arkui/component/inspector.static.d.ets @@ -0,0 +1,66 @@ +'use static'; +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file + * @kit ArkUI + * @arkts 1.2 + */ + +import { memo, ComponentBuilder } from './../stateManagement/runtime'; +import { AttributeModifier, CommonMethod } from './common'; +import { Callback } from '../../@ohos.base'; + +/** + * Profiler tools for inspectors. + * + * @namespace Profiler + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + * @test + */ +export declare namespace Profiler { + /** + * Registers vsync callback for profiler. + * AnonyMous Object Rectification. + * @param { Callback } callback - the callback info is json string with ui update info. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + * @test + */ + function registerVsyncCallback(callback: Callback): void; + /** + * Unregisters vsync callback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + * @test + */ + function unregisterVsyncCallback(): void; +} +/** + * Set app background color. + * + * @param { string } value + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 20 + * @test + */ +export declare function setAppBgColor(value: string): void;