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 * Defines the interface of Screen. 18 * 19 * @interface ScreenInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @systemapi 22 * @since 10 23 */ 24interface ScreenInterface { 25 /** 26 * Called when the Screen is used. 27 * 28 * @param { number } screenId - indicates the identifier of a screen. 29 * @returns { ScreenAttribute } 30 * @syscap SystemCapability.ArkUI.ArkUI.Full 31 * @systemapi 32 * @since 10 33 */ 34 (screenId: number): ScreenAttribute; 35} 36 37/** 38 * Defines the attribute functions of Screen. 39 * 40 * @extends CommonMethod<ScreenAttribute> 41 * @syscap SystemCapability.ArkUI.ArkUI.Full 42 * @systemapi 43 * @since 10 44 */ 45declare class ScreenAttribute extends CommonMethod<ScreenAttribute> { 46} 47 48/** 49 * Defines the Screen component. 50 * 51 * @syscap SystemCapability.ArkUI.ArkUI.Full 52 * @systemapi 53 * @since 10 54 */ 55declare const Screen: ScreenInterface; 56 57/** 58 * Defines the Screen instance. 59 * 60 * @syscap SystemCapability.ArkUI.ArkUI.Full 61 * @systemapi 62 * @since 10 63 */ 64declare const ScreenInstance: ScreenAttribute; 65