• 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 * @since 7
19 * @systemapi
20 * @deprecated since 9
21 * @useinstead getInspectorTree
22 */
23declare function getInspectorNodes(): object;
24
25/**
26 * Get inspector node info by node id.
27 * @since 7
28 * @systemapi
29 * @deprecated since 9
30 * @useinstead getInspectorByKey
31 */
32declare function getInspectorNodeById(id: number): object;
33
34/**
35 * Profiler tools for inspectors.
36 * @since 8
37 * @systemapi
38 * @test
39 */
40declare namespace Profiler {
41  /**
42   * Registers vsync callback for profiler.
43   * @param callback the callback info is json string with ui update info.
44   * @since 8
45   * @systemapi
46   * @test
47   */
48  function registerVsyncCallback(callback: (info: string) => void): void;
49
50  /**
51   * Unregisters vsync callback.
52   * @since 8
53   * @systemapi
54   * @test
55   */
56  function unregisterVsyncCallback(): void;
57}
58
59/**
60 * Set app background color.
61 * @since 8
62 * @systemapi
63 * @test
64 */
65declare function setAppBgColor(value: string): void;
66