修改错误码描述不准确或语法错误问题

Signed-off-by: duao <duao@huawei.com>
This commit is contained in:
duao oh 2024-06-05 22:05:35 +08:00 committed by duao
parent a71dcb8f8f
commit 5d9027c70b
3 changed files with 66 additions and 1290 deletions

File diff suppressed because it is too large Load Diff

View File

@ -259,23 +259,6 @@ declare namespace formObserver {
observerCallback?: Callback<Array<formInfo.RunningFormInfo>>
): void;
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { AsyncCallback<Array<formInfo.RunningFormInfo>> } callback - The callback is used to return the
* RunningFormInfo.
* @param { string } [hostBundleName] - Indicates the bundle name of the form host application.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 10
*/
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
@ -291,28 +274,10 @@ declare namespace formObserver {
* @throws { BusinessError } 16500060 - Service connection error.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 10
*/
function getRunningFormInfos(callback: AsyncCallback<Array<formInfo.RunningFormInfo>>, hostBundleName?: string): void;
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { AsyncCallback<Array<formInfo.RunningFormInfo>> } callback - The callback is used to return the
* RunningFormInfo.
* @param { boolean } isUnusedIncluded - Indicates whether to include unused form.
* @param { string } [hostBundleName] - Indicates the bundle name of the form host application.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 11
*/
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
@ -329,7 +294,7 @@ declare namespace formObserver {
* @throws { BusinessError } 16500060 - Service connection error.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 11
*/
function getRunningFormInfos(
callback: AsyncCallback<Array<formInfo.RunningFormInfo>>,
@ -337,22 +302,6 @@ declare namespace formObserver {
hostBundleName?: string
): void;
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { string } [hostBundleName] - Indicates the bundle name of the form host application.
* @returns { Promise<Array<formInfo.RunningFormInfo>> } Returns the RunningFormInfo.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 10
*/
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
@ -367,27 +316,10 @@ declare namespace formObserver {
* @throws { BusinessError } 16500060 - Service connection error.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 10
*/
function getRunningFormInfos(hostBundleName?: string): Promise<Array<formInfo.RunningFormInfo>>;
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { boolean } isUnusedIncluded - Indicates whether to include unused form.
* @param { string } [hostBundleName] - Indicates the bundle name of the form host application.
* @returns { Promise<Array<formInfo.RunningFormInfo>> } Returns the RunningFormInfo.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 11
*/
/**
* Obtains the RunningFormInfo objects provided by a specific card host application on the device.
*
@ -403,31 +335,13 @@ declare namespace formObserver {
* @throws { BusinessError } 16500060 - Service connection error.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 11
*/
function getRunningFormInfos(
isUnusedIncluded: boolean,
hostBundleName?: string
): Promise<Array<formInfo.RunningFormInfo>>;
/**
* Obtains the RunningFormInfo objects by FormProviderFilter.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { formInfo.FormProviderFilter } formProviderFilter - Indicates the form provider app info.
* @returns { Promise<Array<formInfo.RunningFormInfo>> } The promise returned by the function.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 10
*/
/**
* Obtains the RunningFormInfo objects by FormProviderFilter.
*
@ -444,30 +358,12 @@ declare namespace formObserver {
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 12
* @since 10
*/
function getRunningFormInfosByFilter(
formProviderFilter: formInfo.FormProviderFilter
): Promise<Array<formInfo.RunningFormInfo>>;
/**
* Obtains the RunningFormInfo objects by FormProviderFilter.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { formInfo.FormProviderFilter } formProviderFilter - Indicates the form provider app info.
* @param { AsyncCallback<Array<formInfo.RunningFormInfo>> } callback - The callback of getFormInstancesByFilter.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 10
*/
/**
* Obtains the RunningFormInfo objects by FormProviderFilter.
*
@ -484,31 +380,13 @@ declare namespace formObserver {
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 12
* @since 10
*/
function getRunningFormInfosByFilter(
formProviderFilter: formInfo.FormProviderFilter,
callback: AsyncCallback<Array<formInfo.RunningFormInfo>>
): void;
/**
* Obtains the RunningFormInfo object by formId.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { string } formId - Indicates the form provider formId.
* @returns { Promise<formInfo.RunningFormInfo> } The promise returned by the function.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 10
*/
/**
* Obtains the RunningFormInfo object by formId.
*
@ -525,29 +403,10 @@ declare namespace formObserver {
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 12
* @since 10
*/
function getRunningFormInfoById(formId: string): Promise<formInfo.RunningFormInfo>;
/**
* Obtains the RunningFormInfo object by formId.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { string } formId - Indicates the form provider formId.
* @param { boolean } isUnusedIncluded - Indicates whether to include unused form.
* @returns { Promise<formInfo.RunningFormInfo> } The promise returned by the function.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 11
*/
/**
* Obtains the RunningFormInfo object by formId.
*
@ -565,28 +424,10 @@ declare namespace formObserver {
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 12
* @since 11
*/
function getRunningFormInfoById(formId: string, isUnusedIncluded: boolean): Promise<formInfo.RunningFormInfo>;
/**
* Obtains the RunningFormInfo object by formId.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { string } formId - Indicates the form provider formId.
* @param { AsyncCallback<formInfo.RunningFormInfo> } callback - The callback of getFormInstancesById.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 10
*/
/**
* Obtains the RunningFormInfo object by formId.
*
@ -603,29 +444,10 @@ declare namespace formObserver {
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 12
* @since 10
*/
function getRunningFormInfoById(formId: string, callback: AsyncCallback<formInfo.RunningFormInfo>): void;
/**
* Obtains the RunningFormInfo object by formId.
*
* @permission ohos.permission.OBSERVE_FORM_RUNNING
* @param { string } formId - Indicates the form provider formId.
* @param { boolean } isUnusedIncluded - Indicates whether to include unused form.
* @param { AsyncCallback<formInfo.RunningFormInfo> } callback - The callback of getFormInstancesById.
* @throws { BusinessError } 201 - Permissions denied.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 11
*/
/**
* Obtains the RunningFormInfo object by formId.
*
@ -643,7 +465,7 @@ declare namespace formObserver {
* @syscap SystemCapability.Ability.Form
* @systemapi
* @stagemodelonly
* @since 12
* @since 11
*/
function getRunningFormInfoById(
formId: string,

View File

@ -57,25 +57,6 @@ declare namespace formProvider {
* @syscap SystemCapability.Ability.Form
* @since 9
*/
/**
* Set next update time for a specified form.
*
* @param { string } formId - Indicates the form ID.
* @param { number } minute - Indicates duration minute before next update.
* @param { AsyncCallback<void> } callback - The callback of setFormNextRefreshTime.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @throws { BusinessError } 16501001 - The ID of the form to be operated does not exist.
* @throws { BusinessError } 16501002 - The number of forms exceeds upper bound.
* @throws { BusinessError } 16501003 - The form can not be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 11
*/
/**
* Set next update time for a specified form.
*
@ -93,7 +74,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501003 - The form cannot be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 12
* @since 11
*/
function setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback<void>): void;
@ -115,25 +96,6 @@ declare namespace formProvider {
* @syscap SystemCapability.Ability.Form
* @since 9
*/
/**
* Set next update time for a specified form.
*
* @param { string } formId - Indicates the form ID.
* @param { number } minute - Indicates duration minute before next update.
* @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @throws { BusinessError } 16501001 - The ID of the form to be operated does not exist.
* @throws { BusinessError } 16501002 - The number of forms exceeds upper bound.
* @throws { BusinessError } 16501003 - The form can not be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 11
*/
/**
* Set next update time for a specified form.
*
@ -151,7 +113,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501003 - The form cannot be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 12
* @since 11
*/
function setFormNextRefreshTime(formId: string, minute: number): Promise<void>;
@ -173,25 +135,6 @@ declare namespace formProvider {
* @syscap SystemCapability.Ability.Form
* @since 9
*/
/**
* Update a specified form.
* Client to communication with FormManagerService.
*
* @param { string } formId - Indicates the form ID.
* @param { formBindingData.FormBindingData } formBindingData - Indicates the form data.
* @param { AsyncCallback<void> } callback - The callback of updateForm.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @throws { BusinessError } 16501001 - The ID of the form to be operated does not exist.
* @throws { BusinessError } 16501003 - The form can not be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 11
*/
/**
* Update a specified form.
* Client to communication with FormManagerService.
@ -209,7 +152,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501003 - The form cannot be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 12
* @since 11
*/
function updateForm(
formId: string,
@ -235,25 +178,6 @@ declare namespace formProvider {
* @syscap SystemCapability.Ability.Form
* @since 9
*/
/**
* Update a specified form.
* Client to communication with FormManagerService.
*
* @param { string } formId - Indicates the form ID.
* @param { formBindingData.FormBindingData } formBindingData - Indicates the form data.
* @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @throws { BusinessError } 16501001 - The ID of the form to be operated does not exist.
* @throws { BusinessError } 16501003 - The form can not be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 11
*/
/**
* Update a specified form.
* Client to communication with FormManagerService.
@ -271,7 +195,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501003 - The form cannot be operated by the current application.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 12
* @since 11
*/
function updateForm(formId: string, formBindingData: formBindingData.FormBindingData): Promise<void>;
@ -289,21 +213,6 @@ declare namespace formProvider {
* @syscap SystemCapability.Ability.Form
* @since 9
*/
/**
* Get info of all forms belonging to current bundle.
* Client to communication with FormManagerService.
*
* @param { formInfo.FormInfoFilter } filter - Indicates the requirements the forms that the formInfos belong to have to meet.
* @param { AsyncCallback<Array<formInfo.FormInfo>> } callback - The callback is used to return the formInfo.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 11
*/
/**
* Get info of all forms belonging to current bundle.
* Client to communication with FormManagerService.
@ -317,7 +226,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 12
* @since 11
*/
function getFormsInfo(filter: formInfo.FormInfoFilter, callback: AsyncCallback<Array<formInfo.FormInfo>>): void;
@ -334,20 +243,6 @@ declare namespace formProvider {
* @syscap SystemCapability.Ability.Form
* @since 9
*/
/**
* Get infos of all forms belonging to current bundle.
* Client to communication with FormManagerService.
*
* @param { AsyncCallback<Array<formInfo.FormInfo>> } callback - The callback is used to return the formInfo.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 11
*/
/**
* Get infos of all forms belonging to current bundle.
* Client to communication with FormManagerService.
@ -360,7 +255,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 12
* @since 11
*/
function getFormsInfo(callback: AsyncCallback<Array<formInfo.FormInfo>>): void;
@ -378,21 +273,6 @@ declare namespace formProvider {
* @syscap SystemCapability.Ability.Form
* @since 9
*/
/**
* Get infos of all forms belonging to current bundle.
* Client to communication with FormManagerService.
*
* @param { formInfo.FormInfoFilter } [filter] - Indicates the requirements the forms that the formInfos belong to have to meet.
* @returns { Promise<Array<formInfo.FormInfo>> } Returns the formInfo.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 11
*/
/**
* Get infos of all forms belonging to current bundle.
* Client to communication with FormManagerService.
@ -406,26 +286,10 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @atomicservice
* @since 12
* @since 11
*/
function getFormsInfo(filter?: formInfo.FormInfoFilter): Promise<Array<formInfo.FormInfo>>;
/**
* Request to publish a form to the form host.
*
* @param { Want } want - The want of the form to publish.
* @param { formBindingData.FormBindingData } formBindingData - Indicates the form data.
* @param { AsyncCallback<string> } callback - The callback is used to return the form id.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 9
*/
/**
* Request to publish a form to the form host.
*
@ -440,7 +304,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 9
*/
function requestPublishForm(
want: Want,
@ -448,21 +312,6 @@ declare namespace formProvider {
callback: AsyncCallback<string>
): void;
/**
* Request to publish a form to the form host.
*
* @param { Want } want - The want of the form to publish.
* @param { AsyncCallback<string> } callback - The callback is used to return the form id.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 9
*/
/**
* Request to publish a form to the form host.
*
@ -476,26 +325,10 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 9
*/
function requestPublishForm(want: Want, callback: AsyncCallback<string>): void;
/**
* Request to publish a form to the form host.
*
* @param { Want } want - The want of the form to publish.
* @param { formBindingData.FormBindingData } [formBindingData] - Indicates the form data.
* @returns { Promise<string> } Returns the form id.
* @throws { BusinessError } 202 - The application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16500100 - Failed to obtain the configuration information.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 9
*/
/**
* Request to publish a form to the form host.
*
@ -510,23 +343,10 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 9
*/
function requestPublishForm(want: Want, formBindingData?: formBindingData.FormBindingData): Promise<string>;
/**
* Check if the request of publishing a form is supported by the host
*
* @param { AsyncCallback<boolean> } callback - The callback is used to return true if the request is supported.
* @throws { BusinessError } 202 - If the application is not a system application.
* @throws { BusinessError } 401 - Parameter error. Possible causes:
* 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types; 3.Parameter verification failed.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 9
*/
/**
* Check if the request of publishing a form is supported by the host
*
@ -538,21 +358,10 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 9
*/
function isRequestPublishFormSupported(callback: AsyncCallback<boolean>): void;
/**
* Check if the request of publishing a form is supported by the host
*
* @returns { Promise<boolean> } Returns true if the request is supported.
* @throws { BusinessError } 202 - If the application is not a system application.
* @throws { BusinessError } 16500050 - An IPC connection error happened.
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 9
*/
/**
* Check if the request of publishing a form is supported by the host
*
@ -562,7 +371,7 @@ declare namespace formProvider {
* @throws { BusinessError } 16501000 - An internal functional error occurred.
* @syscap SystemCapability.Ability.Form
* @systemapi
* @since 12
* @since 9
*/
function isRequestPublishFormSupported(): Promise<boolean>;
}