• 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 8
53 * @test
54 */
55declare namespace Profiler {
56  /**
57   * Registers vsync callback for profiler.
58   *
59   * @param { function } callback - the callback info is json string with ui update info.
60   * @syscap SystemCapability.ArkUI.ArkUI.Full
61   * @systemapi
62   * @since 8
63   * @test
64   */
65  function registerVsyncCallback(callback: (info: string) => void): void;
66
67  /**
68   * Unregisters vsync callback.
69   *
70   * @syscap SystemCapability.ArkUI.ArkUI.Full
71   * @systemapi
72   * @since 8
73   * @test
74   */
75  function unregisterVsyncCallback(): void;
76}
77
78/**
79 * Set app background color.
80 *
81 * @param { string } value
82 * @syscap SystemCapability.ArkUI.ArkUI.Full
83 * @systemapi
84 * @since 8
85 * @test
86 */
87declare function setAppBgColor(value: string): void;
88