• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # AutoFillExtensionContext
2 
3 The **AutoFillExtensionContext** module, inherited from [ExtensionContext](js-apis-inner-application-extensionContext.md), provides the context environment for the AutoFillExtensionAbility.
4 
5 > **NOTE**
6 >
7 > 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.
8 > The APIs of this module can be used only in the stage model.
9 
10 ## Usage
11 
12 Before using the **AutoFillExtensionContext** module, you must define a child class that inherits from **AutoFillExtensionAbility**.
13 
14 ```ts
15 import AutoFillExtensionAbility from '@ohos.app.ability.AutoFillExtensionAbility';
16 
17 class MyAutoFillExtensionAbility extends AutoFillExtensionAbility {
18     onCreate() {
19         let AutoFillExtensionContext = this.context;
20     }
21 }
22 ```
23