AutoFillTriggerType (System API)
This module specifies how the autofill service is triggered, based on different user gestures.
NOTE
- The initial APIs of this module are supported since API version 23. Newly added APIs will be marked with a superscript to indicate their earliest API version.
- The APIs of this module can be used only in the stage model.
- The APIs provided by this module are system APIs.
Modules to Import
import { autoFillManager } from '@kit.AbilityKit';
AutoFillTriggerType
Defines the trigger type for launching the autofill service, with three possible values: AUTO_REQUEST, MANUAL_REQUEST, and PASTE_REQUEST. This enumeration is used by the system API FillRequest.triggerType.
System API: This is a system API.
System capability: SystemCapability.Ability.AbilityRuntime.AbilityCore
| Name | Value | Description |
|---|---|---|
| AUTO_REQUEST | 0 | Automatically triggers the autofill service when a TextInput component gains focus. |
| MANUAL_REQUEST | 1 | Manually triggers the autofill service by long-pressing any input component to bring up a secondary menu and selecting autofill. |
| PASTE_REQUEST | 2 | Triggers the autofill service via paste by long-pressing a username or password in the password vault to select secure copy, long-pressing any input component to bring up a secondary menu, and selecting paste. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 js-apis-app-ability-appServiceExtensionAbility
openharmony 鸿蒙 js-apis-inner-wantAgent-triggerInfo-sys
openharmony 鸿蒙 js-apis-inner-wantAgent-wantAgentInfo-sys
openharmony 鸿蒙 js-apis-appControl-sys
openharmony 鸿蒙 js-apis-app-ability-environmentCallback
openharmony 鸿蒙 js-apis-inner-application-missionInfo-sys
openharmony 鸿蒙 js-apis-bundleManager-sharedBundleInfo-sys
openharmony 鸿蒙 js-apis-inner-application-continueMissionInfo-sys
openharmony 鸿蒙 js-apis-inner-application-appServiceExtensionContext
openharmony 鸿蒙 js-apis-bundleManager-businessAbilityInfo-sys