From 27d1e39461960236ea3e36e7b765f21edc6de525 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 9 Apr 2022 16:28:03 +0800 Subject: [PATCH] add user Signed-off-by: unknown --- api/@ohos.ability.featureAbility.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.ability.featureAbility.d.ts b/api/@ohos.ability.featureAbility.d.ts index 37fa892972..6c1e76b7f6 100644 --- a/api/@ohos.ability.featureAbility.d.ts +++ b/api/@ohos.ability.featureAbility.d.ts @@ -124,6 +124,17 @@ declare namespace featureAbility { function hasWindowFocus(callback: AsyncCallback): void; function hasWindowFocus(): Promise; + /** + * Set the property of the ability window whether show on lock screen. + * + * @since 7 + * @syscap SystemCapability.Ability.AbilityRuntime.FAModel + * @return -. + * @FAModelOnly + */ + function setShowOnLockScreen(isShow: boolean, callback: AsyncCallback): void; + function setShowOnLockScreen(isShow: boolean): Promise; + /** * Connects the current ability to an ability using the AbilityInfo.AbilityType.SERVICE template. * @default - -- Gitee