diff --git a/api/@ohos.app.ability.kioskManager.d.ts b/api/@ohos.app.ability.kioskManager.d.ts index 08400cac31858cc6776d5d7bf21d28d42a0b82ec..d3e76cd9ddb054596c4aead7b5a42dd411134f13 100644 --- a/api/@ohos.app.ability.kioskManager.d.ts +++ b/api/@ohos.app.ability.kioskManager.d.ts @@ -19,7 +19,6 @@ */ import UIAbilityContext from './application/UIAbilityContext'; -import { KioskStatus as _KioskStatus } from './application/KioskStatus'; /** * The class of kiosk manager. @@ -31,24 +30,6 @@ import { KioskStatus as _KioskStatus } from './application/KioskStatus'; * @arkts 1.1&1.2 */ declare namespace kioskManager { - /** - * Update Kiosk application list, only application in allow list can enter kiosk mode. - * - * @permission ohos.permission.MANAGE_EDM_POLICY - * @param { Array } appList - Indicates the application list that can enter kiosk mode. - * @returns { Promise } The promise returned by the function. - * @throws { BusinessError } 201 - Permission denied. - * @throws { BusinessError } 202 - Not system application. - * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 16000050 - Internal error. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi - * @stagemodelonly - * @since 20 - * @arkts 1.1&1.2 - */ - function updateKioskAppList(appList: Array): Promise; - /** * Enter kiosk mode. * @@ -82,21 +63,6 @@ declare namespace kioskManager { */ function exitKioskMode(context: UIAbilityContext): Promise; - /** - * Get current kiosk status. - * - * @returns { Promise } Current kiosk status. - * @throws { BusinessError } 202 - Not system application. - * @throws { BusinessError } 801 - Capability not supported. - * @throws { BusinessError } 16000050 - Internal error. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @systemapi - * @stagemodelonly - * @since 20 - * @arkts 1.1&1.2 - */ - function getKioskStatus(): Promise; - /** * The kiosk status data. * diff --git a/api/application/KioskStatus.d.ts b/api/application/KioskStatus.d.ts deleted file mode 100644 index 6d223313e1b797b04cc757bf8cfd87ccf6b96725..0000000000000000000000000000000000000000 --- a/api/application/KioskStatus.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -/** - * @file - * @kit AbilityKit - */ - -/** - * The Kiosk status data. - * - * @typedef KioskStatus - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 20 - * @arkts 1.1&1.2 - */ -export interface KioskStatus { - /** - * Whether current system is in kiosk mode. - * - * @type { boolean } - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 20 - * @arkts 1.1&1.2 - */ - isKioskMode: boolean; - - /** - * The bundle name of kiosk app. - * - * @type { string } - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 20 - * @arkts 1.1&1.2 - */ - kioskBundleName: string; - - /** - * The budle uid of kiosk app. - * - * @type { number } - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @since 20 - * @arkts 1.1&1.2 - */ - kioskBundleUid: number; -}