1# LifecycleForm接口切换
2
3
4  | FA模型接口 | Stage模型接口对应d.ts文件 | Stage模型对应接口 |
5| -------- | -------- | -------- |
6| onCreate?(want: Want): formBindingData.FormBindingData; | \@ohos.app.form.FormExtensionAbility.d.ts | [onAddForm(want: Want): formBindingData.FormBindingData;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility.md#onaddform) |
7| onCastToNormal?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onCastToNormalForm(formId: string): void;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility.md#oncasttonormalform) |
8| onUpdate?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onUpdateForm(formId: string): void;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility.md#onupdateform) |
9| onVisibilityChange?(newStatus: Record<string, number>): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onChangeFormVisibility(newStatus: Record<string, number>): void;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility.md#onchangeformvisibility) |
10| onEvent?(formId: string, message: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onFormEvent(formId: string, message: string): void;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility.md#onformevent) |
11| onDestroy?(formId: string): void; | \@ohos.app.form.FormExtensionAbility.d.ts | [onRemoveForm(formId: string): void;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility.md#onremoveform) |
12| onAcquireFormState?(want: Want): formInfo.FormState; | \@ohos.app.form.FormExtensionAbility.d.ts | [onAcquireFormState?(want: Want): formInfo.FormState;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility.md#onacquireformstate) |
13| onShareForm?(formId: string): Record<string, Object>; | \@ohos.app.form.FormExtensionAbility.d.ts | [onShareForm?(formId: string): Record<string, Object>;](../reference/apis-form-kit/js-apis-app-form-formExtensionAbility-sys.md#onshareform) |
14