From 5007ce3a134cc9fd500b2fe08d324aa48cbecf65 Mon Sep 17 00:00:00 2001 From: caiminggang Date: Sun, 19 Jun 2022 16:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EEnterpriseAdminExtentionAbili?= =?UTF-8?q?ty=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: caiminggang --- ...@ohos.EnterpriseAdminExtensionAbility.d.ts | 41 +++++++++++++++++++ api/@ohos.bundle.d.ts | 6 +++ 2 files changed, 47 insertions(+) create mode 100644 api/@ohos.EnterpriseAdminExtensionAbility.d.ts diff --git a/api/@ohos.EnterpriseAdminExtensionAbility.d.ts b/api/@ohos.EnterpriseAdminExtensionAbility.d.ts new file mode 100644 index 00000000000..a290390863b --- /dev/null +++ b/api/@ohos.EnterpriseAdminExtensionAbility.d.ts @@ -0,0 +1,41 @@ +/* + * 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. + */ + +/** + * Class of the enterprise admin extension ability. + * + * @since 9 + * @syscap SystemCapability.Customization.EnterpriseDeviceManager + * @StageModelOnly + */ +export default class EnterpriseAdminExtensionAbility { + /** + * Called back when an application is enabled. + * + * @since 9 + * @syscap SystemCapability.Customization.EnterpriseDeviceManager + * @StageModelOnly + */ + onAdminEnabled(): void; + + /** + * Called back when an application is disabled. + * + * @since 9 + * @syscap SystemCapability.Customization.EnterpriseDeviceManager + * @StageModelOnly + */ + onAdminDisabled(): void; +} \ No newline at end of file diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index d595998c135..1492b9dca2b 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -303,6 +303,12 @@ declare namespace bundle { * @syscap SystemCapability.BundleManager.BundleFramework */ WINDOW = 10, + /** + * @default Indicates extension info with type of enterprise admin + * @since 9 + * @syscap SystemCapability.BundleManager.BundleFramework + */ + ENTERPRISE_ADMIN = 11, /** * @default Indicates extension info with type of unspecified * @since 9 -- Gitee