• 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 * @file
18 * @kit ArkUI
19 */
20
21/**
22 * Get inspector node infos.
23 *
24 * @returns { object }
25 * @syscap SystemCapability.ArkUI.ArkUI.Full
26 * @systemapi
27 * @since 7
28 * @deprecated since 9
29 * @useinstead getInspectorTree
30 */
31declare function getInspectorNodes(): object;
32
33/**
34 * Get inspector node info by node id.
35 *
36 * @param { number } id
37 * @returns { object }
38 * @syscap SystemCapability.ArkUI.ArkUI.Full
39 * @systemapi
40 * @since 7
41 * @deprecated since 9
42 * @useinstead getInspectorByKey
43 */
44declare function getInspectorNodeById(id: number): object;
45
46/**
47 * Profiler tools for inspectors.
48 *
49 * @namespace Profiler
50 * @syscap SystemCapability.ArkUI.ArkUI.Full
51 * @systemapi
52 * @since arkts {'1.1':'8','1.2':'20'}
53 * @test
54 * @arkts 1.1&1.2
55 */
56declare namespace Profiler {
57  /**
58   * Registers vsync callback for profiler.
59   *
60   * @param { function } callback - the callback info is json string with ui update info.
61   * @syscap SystemCapability.ArkUI.ArkUI.Full
62   * @systemapi
63   * @since arkts {'1.1':'8','1.2':'20'}
64   * @test
65   * @arkts 1.1&1.2
66   */
67  function registerVsyncCallback(callback: (info: string) => void): void;
68
69  /**
70   * Unregisters vsync callback.
71   *
72   * @syscap SystemCapability.ArkUI.ArkUI.Full
73   * @systemapi
74   * @since arkts {'1.1':'8','1.2':'20'}
75   * @test
76   * @arkts 1.1&1.2
77   */
78  function unregisterVsyncCallback(): void;
79}
80
81/**
82 * Set app background color.
83 *
84 * @param { string } value
85 * @syscap SystemCapability.ArkUI.ArkUI.Full
86 * @systemapi
87 * @since arkts {'1.1':'8','1.2':'20'}
88 * @test
89 * @arkts 1.1&1.2
90 */
91declare function setAppBgColor(value: string): void;
92