接口文件perfmanceMonitor.d.ts补充接口recordInputEventTime和属性sourceType‘

Signed-off-by: link <18727210873@163.com>
This commit is contained in:
link 2024-02-21 16:41:50 +08:00
parent b548046d6e
commit 90efe0654a

View File

@ -73,6 +73,48 @@ declare namespace performanceMonitor {
*/
FIRST_MOVE = 2
}
export enum SourceType {
/**
* The user touches the screen to trigger the scene.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 10
*/
PERF_TOUCH_EVENT = 0,
/**
* TThe user uses the mouse to trigger the scene.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 10
*/
PERF_MOUSE_EVENT = 1,
/**
* The user uses the trackpad to trigger the scene.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 10
*/
PERF_TOUCH_PAD = 2,
/**
* TThe user uses the joystick to trigger the scene.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 10
*/
PERF_JOY_STICK = 3,
/**
* The user uses the keyboard to trigger the scene.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 10
*/
PERF_KEY_EVENT = 4
}
/**
* Begin monitoring an application scene.
@ -95,5 +137,17 @@ declare namespace performanceMonitor {
* @since 10
*/
function end(scene: string): void;
/**
* recordInputEventTime monitoring an application scene.
*
* @param { ActionType } type Indicates the scene input event type.
* @param { SourceType } sourceType Indicates the scene input source type.
* @param { number } time Indicates the scene input time.
* @syscap SystemCapability.ArkUI.ArkUI.Full
* @systemapi
* @since 10
*/
function recordInputEventTime(type: ActionType, sourceType: SourceType, time: number): void;
}
export default performanceMonitor;