We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
ReferencesApplication FrameworkAbility KitArkTS APIsDependent Elements and DefinitionsapplicationAutoFillTriggerType

AutoFillTriggerType

Phone23+PC/2in123+Tablet23+TV23+Wearable23+

Enumerates the trigger types of the auto-fill service. Different trigger modes of the auto-fill service are selected through user gestures.

Since: 26.0.0

Modules to Import

Collapse
Word wrap
Dark theme
Copy code
  1. import { autoFillManager } from '@kit.AbilityKit';

AutoFillTriggerType

Phone23+PC/2in123+Tablet23+TV23+Wearable23+

Enumerates the trigger types of the auto-fill service. Three trigger modes are defined: AUTO_REQUEST, MANUAL_REQUEST, and PASTE_REQUEST. AutoFillTriggerType is the enum type of FillRequest.triggerType.

Since: 26.0.0

Atomic service API: This API can be used in atomic services since API version 26.0.0.

System capability: SystemCapability.Ability.AbilityRuntime.AbilityCore

Model restriction: This API can be used only in the stage model.

Expand
Name Value Description
AUTO_REQUEST 0 The auto-fill service is triggered automatically after a TextInput component gains focus.
MANUAL_REQUEST 1 The auto-fill service is triggered manually. You can touch and hold any input component to display the secondary menu, and select auto-fill to trigger the auto-fill service.
PASTE_REQUEST 2 The auto-fill service is triggered by paste. It is triggered only when you touch and hold a username or password in the password vault to copy it securely, and then touch and hold any input component to display the secondary menu and select paste.
Search in References
Enter a keyword.