From b9baabee008d0fb3d231ad57c4c0b10f2c05554d Mon Sep 17 00:00:00 2001 From: xsz233 Date: Thu, 25 Aug 2022 11:33:38 +0800 Subject: [PATCH 1/3] IssueNo: #I5LF8B Description: add new js interface for disposed status Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: xsz233 Change-Id: I8468b9e489e850c2b4cbe5e7158b273fac4d85b2 --- api/@ohos.bundle.appControlManager.d.ts | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 api/@ohos.bundle.appControlManager.d.ts diff --git a/api/@ohos.bundle.appControlManager.d.ts b/api/@ohos.bundle.appControlManager.d.ts new file mode 100644 index 0000000000..22e01c3f2c --- /dev/null +++ b/api/@ohos.bundle.appControlManager.d.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { AsyncCallback } from './basic'; +import Want from './@ohos.application.want'; + +declare namespace appControlManager { + function setDisposedStatus(appId: string, want: Want) : Promise; + function setDisposedStatus(appId: string, want: Want, callback: AsyncCallback) : void; + + function deleteDisposedStatus(appId: string) : Promise; + function deleteDisposedStatus(appId: string, callback: AsyncCallback) : void; + + function getDisposedStatus(appId: string) : Promise; + function getDisposedStatus(appId: string, callback: AsyncCallback): void; +} + +export default appControlManager; \ No newline at end of file -- Gitee From cf93cf046c04324273e85f4a9ef2bb0f9da64a05 Mon Sep 17 00:00:00 2001 From: xsz233 Date: Thu, 25 Aug 2022 12:20:45 +0800 Subject: [PATCH 2/3] Revert "IssueNo: #I5LF8B" This reverts commit b9baabee008d0fb3d231ad57c4c0b10f2c05554d. --- api/@ohos.bundle.appControlManager.d.ts | 30 ------------------------- 1 file changed, 30 deletions(-) delete mode 100644 api/@ohos.bundle.appControlManager.d.ts diff --git a/api/@ohos.bundle.appControlManager.d.ts b/api/@ohos.bundle.appControlManager.d.ts deleted file mode 100644 index 22e01c3f2c..0000000000 --- a/api/@ohos.bundle.appControlManager.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { AsyncCallback } from './basic'; -import Want from './@ohos.application.want'; - -declare namespace appControlManager { - function setDisposedStatus(appId: string, want: Want) : Promise; - function setDisposedStatus(appId: string, want: Want, callback: AsyncCallback) : void; - - function deleteDisposedStatus(appId: string) : Promise; - function deleteDisposedStatus(appId: string, callback: AsyncCallback) : void; - - function getDisposedStatus(appId: string) : Promise; - function getDisposedStatus(appId: string, callback: AsyncCallback): void; -} - -export default appControlManager; \ No newline at end of file -- Gitee From 94a9e05c643d6a17eaff1d37da1e9675a54635a4 Mon Sep 17 00:00:00 2001 From: xsz233 Date: Thu, 25 Aug 2022 12:24:15 +0800 Subject: [PATCH 3/3] IssueNo: #I5LF8B Description: add new js interface for disposed status Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: xsz233 Change-Id: Ia2e3ea2b4b50efbed4cdd99f105fe818b2d5c293 --- api/@ohos.bundle.appControlManager.d.ts | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 api/@ohos.bundle.appControlManager.d.ts diff --git a/api/@ohos.bundle.appControlManager.d.ts b/api/@ohos.bundle.appControlManager.d.ts new file mode 100644 index 0000000000..22e01c3f2c --- /dev/null +++ b/api/@ohos.bundle.appControlManager.d.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { AsyncCallback } from './basic'; +import Want from './@ohos.application.want'; + +declare namespace appControlManager { + function setDisposedStatus(appId: string, want: Want) : Promise; + function setDisposedStatus(appId: string, want: Want, callback: AsyncCallback) : void; + + function deleteDisposedStatus(appId: string) : Promise; + function deleteDisposedStatus(appId: string, callback: AsyncCallback) : void; + + function getDisposedStatus(appId: string) : Promise; + function getDisposedStatus(appId: string, callback: AsyncCallback): void; +} + +export default appControlManager; \ No newline at end of file -- Gitee