• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 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/*** if arkts 1.2 */
22import { CommonMethod} from './common';
23/*** endif */
24
25/**
26 * Defines the interface of Screen.
27 *
28 * @interface ScreenInterface
29 * @syscap SystemCapability.ArkUI.ArkUI.Full
30 * @systemapi
31 * @since arkts {'1.1':'10','1.2':'20'}
32 * @arkts 1.1&1.2
33 */
34interface ScreenInterface {
35  /**
36   * Called when the Screen is used.
37   *
38   * @param { number } screenId - indicates the identifier of a screen.
39   * @returns { ScreenAttribute }
40   * @syscap SystemCapability.ArkUI.ArkUI.Full
41   * @systemapi
42   * @since arkts {'1.1':'10','1.2':'20'}
43   * @arkts 1.1&1.2
44   */
45  (screenId: number): ScreenAttribute;
46}
47
48/**
49 * Defines the attribute functions of Screen.
50 *
51 * @extends CommonMethod<ScreenAttribute>
52 * @syscap SystemCapability.ArkUI.ArkUI.Full
53 * @systemapi
54 * @since arkts {'1.1':'10','1.2':'20'}
55 * @arkts 1.1&1.2
56 */
57declare class ScreenAttribute extends CommonMethod<ScreenAttribute> {
58}
59
60/**
61 * Defines the Screen component.
62 *
63 * @syscap SystemCapability.ArkUI.ArkUI.Full
64 * @systemapi
65 * @since 10
66 */
67declare const Screen: ScreenInterface;
68
69/**
70 * Defines the Screen instance.
71 *
72 * @syscap SystemCapability.ArkUI.ArkUI.Full
73 * @systemapi
74 * @since 10
75 */
76declare const ScreenInstance: ScreenAttribute;
77