mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
接口文件perfmanceMonitor.d.ts补充接口recordInputEventTime和属性sourceType‘
Signed-off-by: link <18727210873@163.com>
This commit is contained in:
parent
b548046d6e
commit
90efe0654a
54
api/@ohos.arkui.performanceMonitor.d.ts
vendored
54
api/@ohos.arkui.performanceMonitor.d.ts
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user