1/* 2 * Copyright (c) 2024 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 AbilityKit 19 */ 20 21/** 22 * UI service host proxy. 23 * 24 * @interface UIServiceHostProxy 25 * @syscap SystemCapability.Ability.AbilityRuntime.Core 26 * @systemapi 27 * @stagemodelonly 28 * @since 14 29 */ 30export default interface UIServiceHostProxy { 31 /** 32 * Send data to a ui service host. 33 * 34 * @param { Record<string, Object> } data - Indicates the data to send. 35 * @throws { BusinessError } 202 - Not System App. Interface caller is not a system app. 36 * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 37 * 2. Incorrect parameter types; 3. Parameter verification failed. 38 * @throws { BusinessError } 16000050 - Internal error. 39 * @syscap SystemCapability.Ability.AbilityRuntime.Core 40 * @systemapi 41 * @stagemodelonly 42 * @since 14 43 */ 44 sendData(data: Record<string, Object>): void; 45}