pub unsafe extern "C" fn OH_ArkUI_UIInputEvent_GetLatestStatus() -> ArkUiResultAvailable on crate features
api-12 and api-20 only.Expand description
Use this method to obtain the execution status of the latest UI input related method.
In most cases, this method is unnecessary unless you need to determine if the return value indicates an error. Here’s an example of usage: For return values like float (where 0.0 doesn’t indicate an error), use GetLatestStatus to confirm if an error occurred. float x = OH_ArkUI_PointerEvent_GetX(event); if (ARKUI_ERROR_CODE_NO_ERROR != OH_ArkUI_UIInputEvent_GetLatestStatus()) { // error return; } Note: The system clears the status of the previous function call each time a UIInput-related function is executed, ensuring you always get the latest status.
§Returns
- Returns the ArkUI_ErrorCode.
Available since API-level: 20