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