diff --git a/api/@ohos.enterprise.applicationManager.d.ts b/api/@ohos.enterprise.applicationManager.d.ts index 612c6d0cce924379a6704f9555f6865e7a3535d9..98c216af91ff8d48d225345ef0ae3cc2afd6f3bf 100644 --- a/api/@ohos.enterprise.applicationManager.d.ts +++ b/api/@ohos.enterprise.applicationManager.d.ts @@ -29,6 +29,34 @@ import type Want from './@ohos.app.ability.Want'; * @since 10 */ declare namespace applicationManager { + /** + * Enum for Kiosk Feature. + * + * @enum { number } + * @syscap SystemCapability.Customization.EnterpriseDeviceManager + * @stagemodelonly + * @since 20 + */ + enum KioskFeature { + /** + * Allow notification center. + * + * @syscap SystemCapability.Customization.EnterpriseDeviceManager + * @stagemodelonly + * @since 20 + */ + ALLOW_NOTIFICATION_CENTER = 1, + + /** + * Allow control center. + * + * @syscap SystemCapability.Customization.EnterpriseDeviceManager + * @stagemodelonly + * @since 20 + */ + ALLOW_CONTROL_CENTER = 2 + } + /** * Add appid list of bundles that is disallowed to run in the device. * This function can be called by a super administrator. @@ -535,6 +563,24 @@ declare namespace applicationManager { * @since 20 */ function isAppKioskAllowed(bundleName: string): boolean; + + /** + * Sets kiosk feature in kiosk mode. + * This function can be called by a super administrator. + * + * @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 } features - kiosk feature to allow custom ui. + * @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. + * @syscap SystemCapability.Customization.EnterpriseDeviceManager + * @stagemodelonly + * @since 20 + */ + function setKioskFeatures(admin: Want, features: Array): void; } export default applicationManager; \ No newline at end of file