From d22298679440bbcc9b88cce15dbe7da5a4a77490 Mon Sep 17 00:00:00 2001 From: fengxun Date: Tue, 1 Jul 2025 12:14:27 +0800 Subject: [PATCH 1/3] =?UTF-8?q?interface=20kiosk=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95=E4=BF=AE=E6=94=B9=E4=B8=BAappIdentifer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fengxun --- api/@ohos.enterprise.applicationManager.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/@ohos.enterprise.applicationManager.d.ts b/api/@ohos.enterprise.applicationManager.d.ts index 98c216af91..f6055c770c 100644 --- a/api/@ohos.enterprise.applicationManager.d.ts +++ b/api/@ohos.enterprise.applicationManager.d.ts @@ -524,7 +524,7 @@ declare namespace applicationManager { * @permission ohos.permission.ENTERPRISE_SET_KIOSK * @param { Want } admin - admin indicates the enterprise admin extension ability information. * The admin must have the corresponding permission. - * @param { Array } bundleNames - bundleNames indicates the bundle names of applications. + * @param { Array } appIdentifers - appIdentifers indicates the identifer of applications. * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed.The application does not have the permission @@ -533,7 +533,7 @@ declare namespace applicationManager { * @stagemodelonly * @since 20 */ - function setAllowedKioskApps(admin: Want, bundleNames: Array): void; + function setAllowedKioskApps(admin: Want, appIdentifers: Array): void; /** * Get applications allowed running in kiosk mode. @@ -542,7 +542,7 @@ declare namespace applicationManager { * @permission ohos.permission.ENTERPRISE_SET_KIOSK * @param { Want } admin - admin indicates the enterprise admin extension ability information. * The admin must have the corresponding permission. - * @returns { Array } the bundle names of allowed running in kiosk mode. + * @returns { Array } the application identifer of allowed running in kiosk mode. * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed.The application does not have the permission @@ -556,13 +556,13 @@ declare namespace applicationManager { /** * Check target application allowed running in kiosk mode. * - * @param { string } bundleName - bundleName indicates the bundle names of application. + * @param { string } appIdentifer - appIdentifer indicates the identifer of applications. * @returns { boolean } true means the bundle name allowed running in kiosk mode, otherwise false. * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly * @since 20 */ - function isAppKioskAllowed(bundleName: string): boolean; + function isAppKioskAllowed(appIdentifer: string): boolean; /** * Sets kiosk feature in kiosk mode. -- Gitee From a397fb786d9ba06eb259f21e81e7e67ccee6a5b7 Mon Sep 17 00:00:00 2001 From: fengxun Date: Tue, 1 Jul 2025 07:34:11 +0000 Subject: [PATCH 2/3] update api/@ohos.enterprise.applicationManager.d.ts. Signed-off-by: fengxun --- api/@ohos.enterprise.applicationManager.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/@ohos.enterprise.applicationManager.d.ts b/api/@ohos.enterprise.applicationManager.d.ts index f6055c770c..fe5277484c 100644 --- a/api/@ohos.enterprise.applicationManager.d.ts +++ b/api/@ohos.enterprise.applicationManager.d.ts @@ -524,7 +524,7 @@ declare namespace applicationManager { * @permission ohos.permission.ENTERPRISE_SET_KIOSK * @param { Want } admin - admin indicates the enterprise admin extension ability information. * The admin must have the corresponding permission. - * @param { Array } appIdentifers - appIdentifers indicates the identifer of applications. + * @param { Array } appIdentifiers - appIdentifiers indicates the identifier of applications. * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed.The application does not have the permission @@ -533,7 +533,7 @@ declare namespace applicationManager { * @stagemodelonly * @since 20 */ - function setAllowedKioskApps(admin: Want, appIdentifers: Array): void; + function setAllowedKioskApps(admin: Want, appIdentifiers: Array): void; /** * Get applications allowed running in kiosk mode. @@ -542,7 +542,7 @@ declare namespace applicationManager { * @permission ohos.permission.ENTERPRISE_SET_KIOSK * @param { Want } admin - admin indicates the enterprise admin extension ability information. * The admin must have the corresponding permission. - * @returns { Array } the application identifer of allowed running in kiosk mode. + * @returns { Array } the application identifier of allowed running in kiosk mode. * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed.The application does not have the permission @@ -556,13 +556,13 @@ declare namespace applicationManager { /** * Check target application allowed running in kiosk mode. * - * @param { string } appIdentifer - appIdentifer indicates the identifer of applications. + * @param { string } appIdentifier - appIdentifier indicates the identifier of the specific application. * @returns { boolean } true means the bundle name allowed running in kiosk mode, otherwise false. * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly * @since 20 */ - function isAppKioskAllowed(appIdentifer: string): boolean; + function isAppKioskAllowed(appIdentifier: string): boolean; /** * Sets kiosk feature in kiosk mode. -- Gitee From cad077cd9adf72ec11b43e1a20433085d69021b2 Mon Sep 17 00:00:00 2001 From: fengxun Date: Fri, 4 Jul 2025 02:44:12 +0000 Subject: [PATCH 3/3] update api/@ohos.enterprise.applicationManager.d.ts. Signed-off-by: fengxun --- api/@ohos.enterprise.applicationManager.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@ohos.enterprise.applicationManager.d.ts b/api/@ohos.enterprise.applicationManager.d.ts index fe5277484c..b8c286f636 100644 --- a/api/@ohos.enterprise.applicationManager.d.ts +++ b/api/@ohos.enterprise.applicationManager.d.ts @@ -523,12 +523,12 @@ declare namespace applicationManager { * * @permission ohos.permission.ENTERPRISE_SET_KIOSK * @param { Want } admin - admin indicates the enterprise admin extension ability information. - * The admin must have the corresponding permission. - * @param { Array } appIdentifiers - appIdentifiers indicates the identifier of applications. + * The admin must have the corresponding permission. + * @param { Array } appIdentifiers - appIdentifiers indicates the appIdentifiers of applications. * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed.The application does not have the permission - * required to call the API. + * required to call the API. * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly * @since 20 @@ -541,12 +541,12 @@ declare namespace applicationManager { * * @permission ohos.permission.ENTERPRISE_SET_KIOSK * @param { Want } admin - admin indicates the enterprise admin extension ability information. - * The admin must have the corresponding permission. - * @returns { Array } the application identifier of allowed running in kiosk mode. + * The admin must have the corresponding permission. + * @returns { Array } the appIdentifiers of applications that allowed running in kiosk mode. * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - Permission verification failed.The application does not have the permission - * required to call the API + * required to call the API * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly * @since 20 @@ -556,8 +556,8 @@ declare namespace applicationManager { /** * Check target application allowed running in kiosk mode. * - * @param { string } appIdentifier - appIdentifier indicates the identifier of the specific application. - * @returns { boolean } true means the bundle name allowed running in kiosk mode, otherwise false. + * @param { string } appIdentifier - appIdentifier indicates the appIdentifier of application. + * @returns { boolean } true means the application allowed running in kiosk mode, otherwise false. * @syscap SystemCapability.Customization.EnterpriseDeviceManager * @stagemodelonly * @since 20 -- Gitee