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