pub unsafe extern "C" fn OH_ArkUI_SetTouchTestDoneCallback(
node: ArkUI_NodeHandle,
userData: *mut c_void,
touchTestDone: Option<unsafe extern "C" fn(event: *mut ArkUI_GestureEvent, recognizers: ArkUI_GestureRecognizerHandleArray, count: i32, userData: *mut c_void)>,
) -> ArkUiResultAvailable on crate features
api-12 and api-20 only.Expand description
Registers a callback that is executed after all gesture recognizers are collected. When the user begins touching the screen, the system performs hit testing and collects gesture recognizers based on the touch location. Subsequently, before processing any move events, the component can use this API to determine the gesture recognizers that will participate in and compete for recognition.
§Arguments
-
node- Handle to the node on which the callback is to be set. -
userData- Custom data. -
touchTestDone- Callback for completion of gesture recognizer collection.
- event: Basic information of the gesture.
- recognizers: Array of gesture recognizers.
- count: Number of gesture recognizers.
§Returns
- Result code.
[
ARKUI_ERROR_CODE_NO_ERROR]: The operation is successful. [ARKUI_ERROR_CODE_PARAM_INVALID]: A parameter error occurs.
Available since API-level: 20