mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-27 08:51:29 +00:00
commit
a62e386194
@ -78,5 +78,17 @@
|
||||
{
|
||||
"first_introduced": "10",
|
||||
"name": "OH_NativeXComponent_GetHistoricalPoints"
|
||||
},
|
||||
{
|
||||
"first_introduced": "11",
|
||||
"name": "OH_NativeXComponent_SetExpectedFrameRateRange"
|
||||
},
|
||||
{
|
||||
"first_introduced": "11",
|
||||
"name": "OH_NativeXComponent_RegisterOnFrameCallback"
|
||||
},
|
||||
{
|
||||
"first_introduced": "11",
|
||||
"name": "OH_NativeXComponent_UnregisterOnFrameCallback"
|
||||
}
|
||||
]
|
@ -329,6 +329,21 @@ struct OH_NativeXComponent_KeyEvent;
|
||||
*/
|
||||
typedef struct OH_NativeXComponent_KeyEvent OH_NativeXComponent_KeyEvent;
|
||||
|
||||
/**
|
||||
* @brief Defines the expected frame rate range struct.
|
||||
*
|
||||
* @since 11
|
||||
* @version 1.0
|
||||
*/
|
||||
typedef struct {
|
||||
/** The minimum frame rate of dynamical callback rate range. */
|
||||
int32_t min;
|
||||
/** The maximum frame rate of dynamical callback rate range. */
|
||||
int32_t max;
|
||||
/** The expected frame rate of dynamical callback rate range. */
|
||||
int32_t expected;
|
||||
} OH_NativeXComponent_ExpectedRateRange;
|
||||
|
||||
/**
|
||||
* @brief Obtains the ID of the ArkUI XComponent.
|
||||
*
|
||||
@ -575,6 +590,41 @@ int32_t OH_NativeXComponent_GetKeyEventDeviceId(OH_NativeXComponent_KeyEvent* ke
|
||||
*/
|
||||
int32_t OH_NativeXComponent_GetKeyEventTimestamp(OH_NativeXComponent_KeyEvent* keyEvent, int64_t* timestamp);
|
||||
|
||||
/**
|
||||
* @brief Set the Expected FrameRateRange.
|
||||
*
|
||||
* @param component Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
|
||||
* @param callback Indicates the pointer to a expected rate range.
|
||||
* @return Returns the status code of the execution.
|
||||
* @since 11
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_NativeXComponent_SetExpectedFrameRateRange(
|
||||
OH_NativeXComponent* component, OH_NativeXComponent_ExpectedRateRange* range);
|
||||
|
||||
/**
|
||||
* @brief Registers a callback for this <b>OH_NativeXComponent</b> instance.
|
||||
*
|
||||
* @param component Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
|
||||
* @param callback Indicates the pointer to a onFrame callback.
|
||||
* @return Returns the status code of the execution.
|
||||
* @since 11
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_NativeXComponent_RegisterOnFrameCallback(OH_NativeXComponent* component,
|
||||
void (*callback)(OH_NativeXComponent* component, uint64_t timestamp, uint64_t targetTimestamp));
|
||||
|
||||
/**
|
||||
* @brief UnRegister a callback for this <b>OH_NativeXComponent</b> instance.
|
||||
*
|
||||
* @param component Indicates the pointer to this <b>OH_NativeXComponent</b> instance.
|
||||
* @return Returns the status code of the execution.
|
||||
* @since 11
|
||||
* @version 1.0
|
||||
*/
|
||||
int32_t OH_NativeXComponent_UnregisterOnFrameCallback(OH_NativeXComponent* component);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user