avsessionkit打元服务标签

Signed-off-by: tangjie <1402602435@qq.com>
This commit is contained in:
tangjie 2024-07-24 15:33:55 +08:00
parent e9c4e95ba0
commit 324803b487
4 changed files with 1486 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,6 +25,14 @@
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* InputEvent
*
* @typedef InputEvent
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
export declare interface InputEvent {
/**
* Unique event ID generated by the server
@ -32,6 +40,13 @@ export declare interface InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Unique event ID generated by the server
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
id: number;
/**
@ -40,6 +55,13 @@ export declare interface InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* ID of the device that reports the input event
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
deviceId: number;
/**
@ -48,6 +70,13 @@ export declare interface InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Occurrence time of the input event
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
actionTime: number;
/**
@ -56,6 +85,13 @@ export declare interface InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* ID of the target screen
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
screenId: number;
/**
@ -64,5 +100,12 @@ export declare interface InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* ID of the target window
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
windowId: number;
}

View File

@ -27,6 +27,14 @@ import type { KeyCode } from './@ohos.multimodalInput.keyCode';
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Action
*
* @enum { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
export declare enum Action {
/**
* Cancel key
@ -34,6 +42,13 @@ export declare enum Action {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Cancel key
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
CANCEL = 0,
/**
@ -42,6 +57,13 @@ export declare enum Action {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Down key
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
DOWN = 1,
/**
@ -50,6 +72,13 @@ export declare enum Action {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Up key
*
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
UP = 2
}
@ -60,6 +89,14 @@ export declare enum Action {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Key
*
* @typedef Key
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
export declare interface Key {
/**
* Key code
@ -67,6 +104,13 @@ export declare interface Key {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Key code
* @type { KeyCode }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
code: KeyCode;
/**
@ -75,6 +119,13 @@ export declare interface Key {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Time when the key is pressed
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
pressedTime: number;
/**
@ -83,6 +134,13 @@ export declare interface Key {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Device to which the key belongs
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
deviceId: number;
}
@ -93,6 +151,14 @@ export declare interface Key {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* KeyEvent
*
* @typedef KeyEvent
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
export declare interface KeyEvent extends InputEvent {
/**
* Key action
@ -100,6 +166,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Key action
* @type { Action }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
action: Action;
/**
@ -108,6 +181,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Key that has changed
* @type { Key }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
key: Key;
/**
@ -116,6 +196,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Unicode character corresponding to the key
* @type { number }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
unicodeChar: number;
/**
@ -124,6 +211,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* List of pressed keys
* @type { Key[] }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
keys: Key[];
/**
@ -132,6 +226,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether ctrlKey is being pressed
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
ctrlKey: boolean;
/**
@ -140,6 +241,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether altKey is being pressed
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
altKey: boolean;
/**
@ -148,6 +256,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether shiftKey is being pressed
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
shiftKey: boolean;
/**
@ -156,6 +271,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether logoKey is being pressed
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
logoKey: boolean;
/**
@ -164,6 +286,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether fnKey is being pressed
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
fnKey: boolean;
/**
@ -172,6 +301,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether capsLock is active
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
capsLock: boolean;
/**
@ -180,6 +316,13 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether numLock is active
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
numLock: boolean;
/**
@ -188,5 +331,12 @@ export declare interface KeyEvent extends InputEvent {
* @syscap SystemCapability.MultimodalInput.Input.Core
* @since 9
*/
/**
* Whether scrollLock is active
* @type { boolean }
* @syscap SystemCapability.MultimodalInput.Input.Core
* @atomicservice
* @since 12
*/
scrollLock: boolean;
}

View File

@ -446,6 +446,14 @@ declare namespace wantAgent {
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @since 7
*/
/**
* WantAgent object.
*
* @typedef { object }
* @syscap SystemCapability.Ability.AbilityRuntime.Core
* @atomicservice
* @since 12
*/
export type WantAgent = object;
export default wantAgent;