1/* 2 * Copyright (c) 2023-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 21import type PageNodeInfo from './PageNodeInfo'; 22import type AutoFillRect from './AutoFillRect'; 23 24/** 25 * View data for automatic filling. 26 * 27 * @interface ViewData 28 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 29 * @systemapi 30 * @stagemodelonly 31 * @since 11 32 */ 33export default interface ViewData { 34 /** 35 * The bundle name. 36 * 37 * @type { string } 38 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 39 * @systemapi 40 * @stagemodelonly 41 * @since 11 42 */ 43 bundleName: string; 44 45 /** 46 * The module name. 47 * 48 * @type { string } 49 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 50 * @systemapi 51 * @stagemodelonly 52 * @since 11 53 */ 54 moduleName: string; 55 56 /** 57 * The ability name. 58 * 59 * @type { string } 60 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 61 * @systemapi 62 * @stagemodelonly 63 * @since 11 64 */ 65 abilityName: string; 66 67 /** 68 * The page url. 69 * 70 * @type { string } 71 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 72 * @systemapi 73 * @stagemodelonly 74 * @since 11 75 */ 76 pageUrl: string; 77 78 /** 79 * The page node infos. 80 * 81 * @type { Array<PageNodeInfo> } 82 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 83 * @systemapi 84 * @stagemodelonly 85 * @since 11 86 */ 87 pageNodeInfos: Array<PageNodeInfo>; 88 89 /** 90 * The page rect infos. 91 * 92 * @type { AutoFillRect } 93 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 94 * @systemapi 95 * @stagemodelonly 96 * @since 12 97 */ 98 pageRect: AutoFillRect; 99 100 /** 101 * Indicates whether the content is user-selected fill-in content. 102 * 103 * @type { boolean } 104 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 105 * @systemapi 106 * @stagemodelonly 107 * @since 12 108 */ 109 isUserSelected: boolean; 110 111 /** 112 * Indicates whether it is other account. 113 * 114 * @type { boolean } 115 * @syscap SystemCapability.Ability.AbilityRuntime.AbilityCore 116 * @systemapi 117 * @stagemodelonly 118 * @since 12 119 */ 120 isOtherAccount: boolean; 121}