• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * Get inspector node infos.
18 *
19 * @returns { object }
20 * @syscap SystemCapability.ArkUI.ArkUI.Full
21 * @systemapi
22 * @since 7
23 * @deprecated since 9
24 * @useinstead getInspectorTree
25 */
26declare function getInspectorNodes(): object;
27
28/**
29 * Get inspector node info by node id.
30 *
31 * @param { number } id
32 * @returns { object }
33 * @syscap SystemCapability.ArkUI.ArkUI.Full
34 * @systemapi
35 * @since 7
36 * @deprecated since 9
37 * @useinstead getInspectorByKey
38 */
39declare function getInspectorNodeById(id: number): object;
40
41/**
42 * Profiler tools for inspectors.
43 *
44 * @namespace Profiler
45 * @syscap SystemCapability.ArkUI.ArkUI.Full
46 * @systemapi
47 * @since 8
48 * @test
49 */
50declare namespace Profiler {
51  /**
52   * Registers vsync callback for profiler.
53   *
54   * @param { function } callback - the callback info is json string with ui update info.
55   * @syscap SystemCapability.ArkUI.ArkUI.Full
56   * @systemapi
57   * @since 8
58   * @test
59   */
60  function registerVsyncCallback(callback: (info: string) => void): void;
61
62  /**
63   * Unregisters vsync callback.
64   *
65   * @syscap SystemCapability.ArkUI.ArkUI.Full
66   * @systemapi
67   * @since 8
68   * @test
69   */
70  function unregisterVsyncCallback(): void;
71}
72
73/**
74 * Set app background color.
75 *
76 * @param { string } value
77 * @syscap SystemCapability.ArkUI.ArkUI.Full
78 * @systemapi
79 * @since 8
80 * @test
81 */
82declare function setAppBgColor(value: string): void;
83