From 4996533b4f1b78b69de4adca053f3db847861252 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Tue, 9 Sep 2025 10:15:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=94=99=E8=AF=AF=E7=A0=81?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- api/@ohos.app.ability.kioskManager.d.ts | 24 ++++++++++++------------ api/@ohos.commonEventManager.d.ts | 4 ++-- api/application/KioskStatus.d.ts | 6 +++--- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/api/@ohos.app.ability.kioskManager.d.ts b/api/@ohos.app.ability.kioskManager.d.ts index 2371d66281..ff89da493f 100644 --- a/api/@ohos.app.ability.kioskManager.d.ts +++ b/api/@ohos.app.ability.kioskManager.d.ts @@ -22,7 +22,7 @@ import UIAbilityContext from './application/UIAbilityContext'; import { KioskStatus as _KioskStatus } from './application/KioskStatus'; /** - * The class of kiosk manager. + * The class of Kiosk manager. * * @namespace kioskManager * @syscap SystemCapability.Ability.AbilityRuntime.Core @@ -32,14 +32,14 @@ import { KioskStatus as _KioskStatus } from './application/KioskStatus'; */ declare namespace kioskManager { /** - * Enter kiosk mode. + * Enter Kiosk mode. * - * @param { UIAbilityContext } context - The context that initiates to enter kiosk mode. + * @param { UIAbilityContext } context - The context that initiates to enter Kiosk mode. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000050 - Failed to connect to the system service. - * @throws { BusinessError } 16000110 - Current application is not in kiosk app list, can not enter kiosk mode. - * @throws { BusinessError } 16000111 - System is already in kiosk mode, can not enter again. + * @throws { BusinessError } 16000110 - The current application is not in Kiosk app list and cannot enter Kiosk mode. + * @throws { BusinessError } 16000111 - The system is already in Kiosk mode and cannot enter Kiosk mode again. * @throws { BusinessError } 16000113 - Current ability is not in foreground. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly @@ -49,14 +49,14 @@ declare namespace kioskManager { function enterKioskMode(context: UIAbilityContext): Promise; /** - * Exit kiosk mode. + * Exit Kiosk mode. * - * @param { UIAbilityContext } context - The context that initiates to exit kiosk mode. + * @param { UIAbilityContext } context - The context that initiates to exit Kiosk mode. * @returns { Promise } The promise returned by the function. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000050 - Failed to connect to the system service. - * @throws { BusinessError } 16000110 - Current application is not in kiosk app list, can not exit kiosk mode. - * @throws { BusinessError } 16000112 - Current application is not in kiosk mode, can not exit. + * @throws { BusinessError } 16000110 - The current application is not in Kiosk app list and cannot enter Kiosk mode. + * @throws { BusinessError } 16000112 - The current application is not in Kiosk mode and cannot exit Kiosk mode. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @since 20 @@ -65,9 +65,9 @@ declare namespace kioskManager { function exitKioskMode(context: UIAbilityContext): Promise; /** - * Get current kiosk status. + * Get current Kiosk status. * - * @returns { Promise } Current kiosk status. + * @returns { Promise } Current Kiosk status. * @throws { BusinessError } 202 - Not system application. * @throws { BusinessError } 801 - Capability not supported. * @throws { BusinessError } 16000050 - Failed to connect to the system service. @@ -80,7 +80,7 @@ declare namespace kioskManager { function getKioskStatus(): Promise; /** - * The kiosk status data. + * The Kiosk status data. * * @typedef { _KioskStatus } * @syscap SystemCapability.Ability.AbilityRuntime.Core diff --git a/api/@ohos.commonEventManager.d.ts b/api/@ohos.commonEventManager.d.ts index 472432ef21..b68b2cc112 100644 --- a/api/@ohos.commonEventManager.d.ts +++ b/api/@ohos.commonEventManager.d.ts @@ -2707,7 +2707,7 @@ declare namespace commonEventManager { COMMON_EVENT_SHORTCUT_CHANGED = 'usual.event.SHORTCUT_CHANGED', /** - * This common event means that kiosk mode is on. + * This common event means that Kiosk mode is on. * This is a protected common event that can only be sent by system. * * @syscap SystemCapability.Notification.CommonEvent @@ -2717,7 +2717,7 @@ declare namespace commonEventManager { COMMON_EVENT_KIOSK_MODE_ON = 'usual.event.KIOSK_MODE_ON', /** - * This common event means that kiosk mode is off. + * This common event means that Kiosk mode is off. * This is a protected common event that can only be sent by system. * * @syscap SystemCapability.Notification.CommonEvent diff --git a/api/application/KioskStatus.d.ts b/api/application/KioskStatus.d.ts index 6d223313e1..d7d7493727 100644 --- a/api/application/KioskStatus.d.ts +++ b/api/application/KioskStatus.d.ts @@ -29,7 +29,7 @@ */ export interface KioskStatus { /** - * Whether current system is in kiosk mode. + * Whether current system is in Kiosk mode. * * @type { boolean } * @syscap SystemCapability.Ability.AbilityRuntime.Core @@ -40,7 +40,7 @@ export interface KioskStatus { isKioskMode: boolean; /** - * The bundle name of kiosk app. + * The bundle name of Kiosk app. * * @type { string } * @syscap SystemCapability.Ability.AbilityRuntime.Core @@ -51,7 +51,7 @@ export interface KioskStatus { kioskBundleName: string; /** - * The budle uid of kiosk app. + * The budle uid of Kiosk app. * * @type { number } * @syscap SystemCapability.Ability.AbilityRuntime.Core -- Gitee