mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-04-12 18:28:35 +00:00
add revokeDelegator
Signed-off-by: yuwenze <yuwenze1@huawei.com> Change-Id: I3e57cd10d2bce924299f6ea35f2178a36920b025
This commit is contained in:
parent
5798b8f893
commit
3c3204bc23
16
api/application/UIAbilityContext.d.ts
vendored
16
api/application/UIAbilityContext.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user