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