add revokeDelegator

Signed-off-by: yuwenze <yuwenze1@huawei.com>
Change-Id: I3e57cd10d2bce924299f6ea35f2178a36920b025
This commit is contained in:
yuwenze 2025-04-01 15:08:35 +08:00
parent 5798b8f893
commit 3c3204bc23

View File

@ -4781,6 +4781,22 @@ export default class UIAbilityContext extends Context {
*/
setAbilityInstanceInfo(label: string, icon: image.PixelMap): Promise<void>;
/**
* Revoke delegator.
*
* @returns { Promise<void> } The promise returned by the function.
* @throws { BusinessError } 801 - Capability not support.
* @throws { BusinessError } 16000011 - The context does not exist.
* @throws { BusinessError } 16000050 - Internal error.
* @throws { BusinessError } 16000065 - The API can be called only when the ability is running in the foreground.
* @throws { BusinessError } 16000084 - The context does not belong to HookAbility; multiple calls are invoked.
* @throws { BusinessError } 16000085 - Failed to cancel the hook of the window module.
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @stagemodelonly
* @since 17
*/
revokeDelegator(): Promise<void>;
/**
* Set colorMode of uiability.
*