update api/@ohos.multimodalInput.inputConsumer.d.ts.

Signed-off-by: pengyuan <lipengyuan4@huawei.com>
This commit is contained in:
pengyuan 2023-11-02 08:07:11 +00:00 committed by Gitee
parent 34ba55e6a9
commit 1b23af5354
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Copyright (C) 2021-2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -131,10 +131,11 @@ declare namespace inputConsumer {
/**
* Sets whether shield key event interception, only support shield key event.
*
* @permission ohos.permission.INPUT_DISPATCHING_CONTROL
* @param { ShieldMode } shieldMode - Accroding the shield mode select shield key event range.
* @param { boolean } isShield - Indicates whether key event handler chain is shield. The value <b>true</b> indicates
* all key events derictly dispatch to window, if the value <b>false</b> indicates not shield key event interception,
* handle by the chain.
* @param { boolean } isShield - Indicates whether control key event dispatch. The value <b>true</b> indicates
* all key events derictly dispatch to window, if the value <b>false</b> indicates not shiled shortcut key.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - SystemAPI permission error.
* @throws { BusinessError } 401 - Parameter error.
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer
@ -144,10 +145,12 @@ declare namespace inputConsumer {
function setShieldStatus(shieldMode: ShieldMode, isShield: boolean): void;
/**
* Gets shield event interception status corresponding to shield mode
* Gets shield event interception status corresponding to shield mode
*
* @permission ohos.permission.INPUT_DISPATCHING_CONTROL
* @param { ShieldMode } shieldMode - Accroding the shield mode select shield key event range.
* @returns { boolean } Returns true if shield event interception, returns false otherwise.
* @throws { BusinessError } 201 - Permission denied.
* @throws { BusinessError } 202 - SystemAPI permission error.
* @throws { BusinessError } 401 - Parameter error.
* @syscap SystemCapability.MultimodalInput.Input.InputConsumer