From e8d5848c95dbb89b8209d1825232f2c01e57c875 Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Wed, 28 May 2025 16:44:14 +0800 Subject: [PATCH] add kiosk interface Signed-off-by: zhangzezhong --- api/application/ApplicationContext.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/api/application/ApplicationContext.d.ts b/api/application/ApplicationContext.d.ts index e43a2c4eb4..1afe28c3ee 100644 --- a/api/application/ApplicationContext.d.ts +++ b/api/application/ApplicationContext.d.ts @@ -794,4 +794,29 @@ export default class ApplicationContext extends Context { * @since 14 */ getAllRunningInstanceKeys(): Promise>; + + /** + * Enter Kiosk mode + * + * @throws { BusinessError } 16000100 - The caller is not in kiosk app list, can not call this interface. + * @throws { BusinessError } 16000101 - System is already in kiosk mode. + * @throws { BusinessError } 16000103 - Caller is not in foreground. + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @stagemodelonly + * @since 28 + * @arks 1.181.2 + */ + enterKioskMode(): Promise; + + /** + * Exit Kiosk mode + * + * @throws { BusinessError } 16000100 - The caller is not in kiosk app list, can not call this interface. + * @throws { BusinessError } 16000102 - The caller does not enter kiosk mode before. + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @stagemodelonly + * @since 28 + * @arks 1.181.2 + */ + exitKioskMode(): Promise; } -- Gitee