1/* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { AsyncCallback } from "./basic"; 17import formBindingData from "./@ohos.application.formBindingData"; 18import formInfo from "./@ohos.app.form.formInfo"; 19import Want from './@ohos.app.ability.Want'; 20 21/** 22 * interface of formProvider. 23 * 24 * @name formProvider 25 * @since 8 26 * @syscap SystemCapability.Ability.Form 27 * @deprecated since 9 28 * @useinstead ohos.app.form.formProvider 29 */ 30declare namespace formProvider { 31 /** 32 * Set next update time for a specified form. 33 * 34 * @since 8 35 * @syscap SystemCapability.Ability.Form 36 * @param formId Indicates the form ID. 37 * @param minute Indicates duration minute before next update. 38 * @returns - 39 */ 40 function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback<void>): void; 41 function setFormNextRefreshTime(formId: string, minute: number): Promise<void>; 42 43 /** 44 * Update a specified form. 45 * 46 * Client to communication with FormManagerService. 47 * 48 * @since 8 49 * @syscap SystemCapability.Ability.Form 50 * @param formId Indicates the form ID 51 * @param formBindingData Indicates the form data 52 * @returns - 53 */ 54 function updateForm(formId: string, formBindingData: formBindingData.FormBindingData, 55 callback: AsyncCallback<void>): void; 56 function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise<void>; 57 58} 59export default formProvider;