mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
增加批量释放卡片内存接口
Change-Id: I6e76082d4a6dc7066db03a0e6e9613deaa83ea71 Signed-off-by: sunhaiyang <sunhy.sun@huawei.com>
This commit is contained in:
parent
1fbc6f86ff
commit
1402b3fb18
19
api/@ohos.app.form.formHost.d.ts
vendored
19
api/@ohos.app.form.formHost.d.ts
vendored
@ -995,6 +995,25 @@ declare namespace formHost {
|
||||
*/
|
||||
function setFormsRecyclable(formIds: Array<string>, callback: AsyncCallback<void>): void;
|
||||
|
||||
/**
|
||||
* Recycle permanent dynamic ArkTS forms.
|
||||
*
|
||||
* @permission ohos.permission.REQUIRE_FORM
|
||||
* @param { Array<string> } formIds - Indicates the IDs of the forms to be recycled.
|
||||
* @returns { Promise<void> } The promise returned by the function.
|
||||
* @throws { BusinessError } 201 - Permissions denied.
|
||||
* @throws { BusinessError } 202 - The application is not a system application.
|
||||
* @throws { BusinessError } 401 - If the input parameter is not valid parameter.
|
||||
* @throws { BusinessError } 16500050 - An IPC connection error happened.
|
||||
* @throws { BusinessError } 16500060 - A service connection error happened, please try again later.
|
||||
* @throws { BusinessError } 16501000 - An internal functional error occurred.
|
||||
* @syscap SystemCapability.Ability.Form
|
||||
* @systemapi
|
||||
* @stagemodelonly
|
||||
* @since 12
|
||||
*/
|
||||
function recycleForms(formIds: Array<string>): Promise<void>;
|
||||
|
||||
/**
|
||||
* Recover recycled permanent dynamic ArkTS forms.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user