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 * @readonly 83 * @syscap SystemCapability.ArkUI.ArkUI.Full 84 * @systemapi 85 * @since 9 86 */ 87 readonly bundleName: string; 88 89 /** 90 * @type { string } 91 * @readonly 92 * @syscap SystemCapability.ArkUI.ArkUI.Full 93 * @systemapi 94 * @since 9 95 */ 96 readonly abilityName: string; 97 98 /** 99 * @type { RRect } 100 * @readonly 101 * @syscap SystemCapability.ArkUI.ArkUI.Full 102 * @systemapi 103 * @since 9 104 */ 105 readonly windowBounds: RRect; 106 107 /** 108 * @type { number } 109 * @readonly 110 * @syscap SystemCapability.ArkUI.ArkUI.Full 111 * @systemapi 112 * @since 9 113 */ 114 readonly missionId: number; 115} 116 117/** 118 * Provides an interface for controlling the remote window. 119 * 120 * @interface RemoteWindowInterface 121 * @syscap SystemCapability.ArkUI.ArkUI.Full 122 * @systemapi 123 * @since 9 124 */ 125interface RemoteWindowInterface { 126 /** 127 * Called when the remote window interface is used. 128 * 129 * @param { WindowAnimationTarget } target 130 * @returns { RemoteWindowAttribute } 131 * @syscap SystemCapability.ArkUI.ArkUI.Full 132 * @systemapi 133 * @since 9 134 */ 135 (target: WindowAnimationTarget): RemoteWindowAttribute; 136} 137 138/** 139 * Inheritance CommonMethod Set Styles 140 * 141 * @extends CommonMethod<RemoteWindowAttribute> 142 * @syscap SystemCapability.ArkUI.ArkUI.Full 143 * @systemapi 144 * @since 9 145 */ 146declare class RemoteWindowAttribute extends CommonMethod<RemoteWindowAttribute> {} 147 148/** 149 * Defines RemoteWindow Component. 150 * 151 * @syscap SystemCapability.ArkUI.ArkUI.Full 152 * @systemapi 153 * @since 9 154 */ 155declare const RemoteWindow: RemoteWindowInterface; 156 157/** 158 * Defines RemoteWindow Component instance. 159 * 160 * @syscap SystemCapability.ArkUI.ArkUI.Full 161 * @systemapi 162 * @since 9 163 */ 164declare const RemoteWindowInstance: RemoteWindowAttribute; 165