diff --git a/api/@internal/ets/lifecycle.d.ts b/api/@internal/ets/lifecycle.d.ts index a96e080645cfeb834ea238d257c9f9fd470d7710..ae675446dcbde548d37d72488f39413d79ab7cf2 100644 --- a/api/@internal/ets/lifecycle.d.ts +++ b/api/@internal/ets/lifecycle.d.ts @@ -19,118 +19,11 @@ import { AbilityInfo } from "../bundle/abilityInfo"; import { DataAbilityResult } from "../ability/dataAbilityResult"; import { DataAbilityOperation } from "../ability/dataAbilityOperation"; import dataAbility from "../@ohos.data.dataAbility"; -import formBindingData from "../@ohos.ability.formBindingData"; -import formManager from "../@ohos.ability.formManager"; import rdb from "../@ohos.data.rdb"; import rpc from "../@ohos.rpc"; import resourceManager from "../@ohos.resourceManager"; import { PacMap } from "../ability/dataAbilityHelper"; -/** - * interface of form lifecycle. - * - * @name LifecycleForm - * @since 7 - * @sysCap AAFwk - * @devices phone, tablet, tv, wearable, car - */ -export declare interface LifecycleForm { - /** - * Called to return a {@link formBindingData.FormBindingData} object. - * - * @devices phone, tablet, tv, wearable, car - * @since 7 - * @sysCap AAFwk - * @param want Indicates the detailed information for creating a {@link formBindingData#FormBindingData}. - * The {@code Want} object must include the form ID, form name, and grid style of the form, - * which can be obtained from {@link formManager#FormParam#IDENTITY_KEY}, - * {@link formManager#FormParam#NAME_KEY}, and {@link formManager#FormParam#DIMENSION_KEY}, - * respectively. Such form information must be managed as persistent data for further form - * acquisition, update, and deletion. - * @return Returns the created {@link formBindingData#FormBindingData} object. - */ - onCreate?(want: Want): formBindingData.FormBindingData; - - /** - * Called when the form provider is notified that a temporary form is successfully converted to a normal form. - * - * @devices phone, tablet, tv, wearable, car - * @since 7 - * @sysCap AAFwk - * @param formId Indicates the ID of the form. - * @return - - */ - onCastTempToNormal?(formId: string): void; - - /** - * Called to notify the form provider to update a specified form. - * - * @devices phone, tablet, tv, wearable, car - * @since 7 - * @sysCap AAFwk - * @param formId Indicates the ID of the form to update. - * @return - - */ - onUpdate?(formId: string): void; - - /** - * Called when the form provider receives form events from the system. - * - * @devices phone, tablet, tv, wearable, car - * @since 7 - * @sysCap AAFwk - * @param newStatus Indicates the form events occurred. The key in the {@code Map} object indicates the form ID, - * and the value indicates the event type, which can be either {@link formManager#VisibilityType#FORM_VISIBLE} - * or {@link formManager#VisibilityType#FORM_INVISIBLE}. {@link formManager#VisibilityType#FORM_VISIBLE} - * means that the form becomes visible, and {@link formManager#VisibilityType#FORM_INVISIBLE} - * means that the form becomes invisible. - * @return - - */ - onVisibilityChanged?(newStatus: { [key: string]: number }): void; - - /** - * Called when a specified message event defined by the form provider is triggered. This method is valid only for - * JS forms. - * - * @devices phone, tablet, tv, wearable, car - * @since 7 - * @sysCap AAFwk - * @param formId Indicates the ID of the form on which the message event is triggered, which is provided by - * the client to the form provider. - * @param message Indicates the value of the {@code params} field of the message event. This parameter is - * used to identify the specific component on which the event is triggered. - * @return - - */ - onTriggerEvent?(formId: string, message: string): void; - - /** - * Called to notify the form provider that a specified form has been deleted. Override this method if - * you want your application, as the form provider, to be notified of form deletion. - * - * @devices phone, tablet, tv, wearable, car - * @since 7 - * @sysCap AAFwk - * @param formId Indicates the ID of the deleted form. - * @return - - */ - onDelete?(formId: string): void; - - /** - * Called to return a {@link FormState} object. - * - *

You must override this callback if you want this ability to return the actual form state. Otherwise, - * this method returns {@link FormState#DEFAULT} by default.

- * - * @devices phone, tablet, tv, wearable, car - * @since 7 - * @sysCap AAFwk - * @param want Indicates the description of the form for which the {@link formManager#FormState} is obtained. - * The description covers the bundle name, ability name, module name, form name, and form dimensions. - * @return Returns the {@link formManager#FormState} object. - */ - onAcquireFormState?(want: Want): formManager.FormState; -} - /** * interface of app lifecycle. *