interface_sdk-js/api/@ohos.multimodalInput.inputEvent.d.ts
hungry_feiwei 5505ea0c80 add interface
Signed-off-by: hungry_feiwei <huxiao31@huawei.com>
2022-04-24 09:46:58 +08:00

41 lines
1.2 KiB
TypeScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* Copyright (C) 2021 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* InputEvent
*
* @since 9
* @syscap SystemCapability.MultimodalInput.Input.Core
* @import import InputEvent from '@ohos.multimodalInput.inputEvent';
* @permission N/A
*/
export declare interface InputEvent {
// 事件id服务端生成全局唯一
readonly id: number;
// 上报输入事件的设备id, 整型数字,>=0 有效
deviceId: number;
// 事件发生事件
actionTime: number;
// 目标屏幕id, 整型数字,>=0 有效
screenId: number;
// 目标窗口id, 整型数字, >=0 有效
windowId: number;
}