pub unsafe extern "C" fn OH_ArkUI_PanGesture_SetDistanceMap(
recognizer: *mut ArkUI_GestureRecognizer,
size: c_int,
toolTypeArray: *mut c_int,
distanceArray: *mut f64,
) -> ArkUiResultAvailable on crate features
api-12 and api-19 only.Expand description
Sets the minimum movement distance thresholds for gestures to be recognized by a gesture recognizer.
§Arguments
-
recognizer- Indicates the pointer to a gesture recognizer. -
size- Size of the array of minimum movement distance thresholds. -
toolTypeArray- Pointer to the array of tool types for which thresholds are set. -
distanceArray- Pointer to the array of minimum movement distances, in px.
§Returns
- Returns the result code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs. Returns [ARKUI_ERROR_CODE_RECOGNIZER_TYPE_NOT_SUPPORTED] if the gesture recognizer type is not supported.
Available since API-level: 19