1# @ohos.app.ability.autoFillManager (autoFillManager) (System API) 2 3The autoFillManager module provides APIs for saving accounts and passwords. 4 5Unlike the system's auto-save feature that triggers during page transitions, this feature requires manual activation by the user. For example, the user must input their account and password on a website and click the **Save** button to initiate the saving process. 6 7> **NOTE** 8> 9> The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version. 10> 11> The APIs of this module can be used only in the stage model. 12> 13> This topic describes only system APIs provided by the module. For details about its public APIs, see [@ohos.app.ability.autoFillManager (autoFillManager)](js-apis-app-ability-autoFillManager.md). 14 15## Modules to Import 16 17```ts 18import { autoFillManager } from '@kit.AbilityKit'; 19``` 20 21## ViewData 22 23type ViewData = _ViewData.default 24 25Defines the view data used for auto-fill. 26 27**System API**: This is a system API. 28 29**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 30 31**Model restriction**: This API can be used only in the stage model. 32 33| Type| Description| 34| --- | --- | 35| [_ViewData.default](js-apis-inner-application-viewData-sys.md) | View data used for auto-fill.| 36 37## PageNodeInfo 38 39type PageNodeInfo = _PageNodeInfo.default 40 41Defines the page node information used for auto-fill. 42 43**System API**: This is a system API. 44 45**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 46 47**Model restriction**: This API can be used only in the stage model. 48 49| Type| Description| 50| --- | --- | 51| [_PageNodeInfo.default](js-apis-inner-application-pageNodeInfo-sys.md) | Page node information used for auto-fill.| 52 53## FillRequest 54 55type FillRequest = _AutoFillRequest.FillRequest 56 57Defines the information about an auto-fill request. 58 59**System API**: This is a system API. 60 61**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 62 63**Model restriction**: This API can be used only in the stage model. 64 65| Type| Description| 66| --- | --- | 67| [_AutoFillRequest.FillRequest](js-apis-inner-application-autoFillRequest-sys.md#fillrequest) | Information about an auto-fill request.| 68 69## SaveRequest 70 71type SaveRequest = _AutoFillRequest.SaveRequest 72 73Defines the information about an auto-save request. 74 75**System API**: This is a system API. 76 77**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 78 79**Model restriction**: This API can be used only in the stage model. 80 81| Type| Description| 82| --- | --- | 83| [_AutoFillRequest.SaveRequest](js-apis-inner-application-autoFillRequest-sys.md#saverequest) | Information about an auto-save request.| 84 85## UpdateRequest<sup>12+</sup> 86 87type UpdateRequest = _AutoFillRequest.UpdateRequest 88 89Defines the information about an auto-update request. 90 91**System API**: This is a system API. 92 93**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 94 95**Model restriction**: This API can be used only in the stage model. 96 97| Type| Description| 98| --- | --- | 99| [_AutoFillRequest.UpdateRequest](js-apis-inner-application-autoFillRequest-sys.md#updaterequest12) | Information about an auto-update request.| 100 101## FillResponse 102 103type FillResponse = _AutoFillRequest.FillResponse 104 105Defines the information about the response to an auto-fill request. 106 107**System API**: This is a system API. 108 109**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 110 111**Model restriction**: This API can be used only in the stage model. 112 113| Type| Description| 114| --- | --- | 115| [_AutoFillRequest.FillResponse](js-apis-inner-application-autoFillRequest-sys.md#fillresponse) | Information about the response to an auto-fill request.| 116 117## FillRequestCallback 118 119type FillRequestCallback = _AutoFillRequest.FillRequestCallback 120 121Defines the callback for an auto-fill request, which is used to automatically fill in or generate a password. The callback can be used to notify the client of the success or failure of the request. 122 123**System API**: This is a system API. 124 125**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 126 127**Model restriction**: This API can be used only in the stage model. 128 129| Type| Description| 130| --- | --- | 131| [_AutoFillRequest.FillRequestCallback](js-apis-inner-application-autoFillRequest-sys.md#fillrequestcallback) | Callback for an auto-fill request, which is used to automatically fill in or generate a password. The callback can be used to notify the client of the success or failure of the request.| 132 133## SaveRequestCallback 134 135type SaveRequestCallback = _AutoFillRequest.SaveRequestCallback 136 137Defines the callback for an automatic or a manual saving request. 138 139**System API**: This is a system API. 140 141**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 142 143**Model restriction**: This API can be used only in the stage model. 144 145| Type| Description| 146| --- | --- | 147| [_AutoFillRequest.SaveRequestCallback](js-apis-inner-application-autoFillRequest-sys.md#saverequestcallback) | Callback for an automatic or a manual saving request.| 148 149## CustomData<sup>13+</sup> 150 151type CustomData = _CustomData.default 152 153Defines the custom data. 154 155**System API**: This is a system API. 156 157**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 158 159**Model restriction**: This API can be used only in the stage model. 160 161| Type| Description| 162| --- | --- | 163| [_CustomData.default](js-apis-inner-application-customData-sys.md) | Custom data.| 164 165## AutoFillRect<sup>12+</sup> 166 167type AutoFillRect = _AutoFillRect.default 168 169Defines the rectangle used for auto-fill. 170 171**System API**: This is a system API. 172 173**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 174 175**Model restriction**: This API can be used only in the stage model. 176 177| Type| Description| 178| --- | --- | 179| [_AutoFillRect.default](js-apis-inner-application-autoFillRect-sys.md) | Rectangle used for auto-fill.| 180 181## AutoFillPopupConfig<sup>12+</sup> 182 183type AutoFillPopupConfig = _AutoFillPopupConfig.default 184 185Defines the size and position information of an auto-fill pop-up. 186 187**System API**: This is a system API. 188 189**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 190 191**Model restriction**: This API can be used only in the stage model. 192 193| Type| Description| 194| --- | --- | 195| [_AutoFillPopupConfig.default](js-apis-inner-application-autoFillPopupConfig-sys.md) | Size and position information of the auto-fill pop-up.| 196 197## PopupSize<sup>12+</sup> 198 199type PopupSize = _AutoFillPopupConfig.PopupSize 200 201Defines the width and height of an auto-fill pop-up. 202 203**System API**: This is a system API. 204 205**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore 206 207**Model restriction**: This API can be used only in the stage model. 208 209| Type| Description| 210| --- | --- | 211| [_AutoFillPopupConfig.PopupSize](js-apis-inner-application-autoFillPopupConfig-sys.md#popupsize) | Width and height of the auto-fill pop-up.| 212