1/* 2 * Copyright (c) 2022 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/*** if arkts 1.2 */ 21import { CommonMethod } from './common'; 22/*** endif */ 23/** 24 * Round rect. 25 * 26 * @interface RRect 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @systemapi 29 * @since arkts {'1.1':'9','1.2':'20'} 30 * @arkts 1.1&1.2 31 */ 32interface RRect { 33 /** 34 * @type { number } 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @systemapi 37 * @since arkts {'1.1':'9','1.2':'20'} 38 * @arkts 1.1&1.2 39 */ 40 left: number; 41 42 /** 43 * @type { number } 44 * @syscap SystemCapability.ArkUI.ArkUI.Full 45 * @systemapi 46 * @since arkts {'1.1':'9','1.2':'20'} 47 * @arkts 1.1&1.2 48 */ 49 top: number; 50 51 /** 52 * @type { number } 53 * @syscap SystemCapability.ArkUI.ArkUI.Full 54 * @systemapi 55 * @since arkts {'1.1':'9','1.2':'20'} 56 * @arkts 1.1&1.2 57 */ 58 width: number; 59 60 /** 61 * @type { number } 62 * @syscap SystemCapability.ArkUI.ArkUI.Full 63 * @systemapi 64 * @since arkts {'1.1':'9','1.2':'20'} 65 * @arkts 1.1&1.2 66 */ 67 height: number; 68 69 /** 70 * @type { number } 71 * @syscap SystemCapability.ArkUI.ArkUI.Full 72 * @systemapi 73 * @since arkts {'1.1':'9','1.2':'20'} 74 * @arkts 1.1&1.2 75 */ 76 radius: number; 77} 78 79/** 80 * Window animation target. 81 * 82 * @interface WindowAnimationTarget 83 * @syscap SystemCapability.ArkUI.ArkUI.Full 84 * @systemapi 85 * @since arkts {'1.1':'9','1.2':'20'} 86 * @arkts 1.1&1.2 87 */ 88interface WindowAnimationTarget { 89 /** 90 * @type { string } 91 * @readonly 92 * @syscap SystemCapability.ArkUI.ArkUI.Full 93 * @systemapi 94 * @since arkts {'1.1':'9','1.2':'20'} 95 * @arkts 1.1&1.2 96 */ 97 readonly bundleName: string; 98 99 /** 100 * @type { string } 101 * @readonly 102 * @syscap SystemCapability.ArkUI.ArkUI.Full 103 * @systemapi 104 * @since arkts {'1.1':'9','1.2':'20'} 105 * @arkts 1.1&1.2 106 */ 107 readonly abilityName: string; 108 109 /** 110 * @type { RRect } 111 * @readonly 112 * @syscap SystemCapability.ArkUI.ArkUI.Full 113 * @systemapi 114 * @since arkts {'1.1':'9','1.2':'20'} 115 * @arkts 1.1&1.2 116 */ 117 readonly windowBounds: RRect; 118 119 /** 120 * @type { number } 121 * @readonly 122 * @syscap SystemCapability.ArkUI.ArkUI.Full 123 * @systemapi 124 * @since arkts {'1.1':'9','1.2':'20'} 125 * @arkts 1.1&1.2 126 */ 127 readonly missionId: number; 128} 129 130/** 131 * Provides an interface for controlling the remote window. 132 * 133 * @interface RemoteWindowInterface 134 * @syscap SystemCapability.ArkUI.ArkUI.Full 135 * @systemapi 136 * @since arkts {'1.1':'9','1.2':'20'} 137 * @arkts 1.1&1.2 138 */ 139interface RemoteWindowInterface { 140 /** 141 * Called when the remote window interface is used. 142 * 143 * @param { WindowAnimationTarget } target 144 * @returns { RemoteWindowAttribute } 145 * @syscap SystemCapability.ArkUI.ArkUI.Full 146 * @systemapi 147 * @since arkts {'1.1':'9','1.2':'20'} 148 * @arkts 1.1&1.2 149 */ 150 (target: WindowAnimationTarget): RemoteWindowAttribute; 151} 152 153/** 154 * Inheritance CommonMethod Set Styles 155 * 156 * @extends CommonMethod<RemoteWindowAttribute> 157 * @syscap SystemCapability.ArkUI.ArkUI.Full 158 * @systemapi 159 * @since arkts {'1.1':'9','1.2':'20'} 160 * @arkts 1.1&1.2 161 */ 162declare class RemoteWindowAttribute extends CommonMethod<RemoteWindowAttribute> {} 163 164/** 165 * Defines RemoteWindow Component. 166 * 167 * @syscap SystemCapability.ArkUI.ArkUI.Full 168 * @systemapi 169 * @since 9 170 */ 171declare const RemoteWindow: RemoteWindowInterface; 172 173/** 174 * Defines RemoteWindow Component instance. 175 * 176 * @syscap SystemCapability.ArkUI.ArkUI.Full 177 * @systemapi 178 * @since 9 179 */ 180declare const RemoteWindowInstance: RemoteWindowAttribute; 181