pub unsafe extern "C" fn OH_ArkUI_LongPressGesture_SetAllowableMovement(
recognizer: *mut ArkUI_GestureRecognizer,
allowableMovement: f64,
) -> ArkUiResultAvailable on crate features
api-12 and api-22 only.Expand description
Sets the maximum moving distance for gestures to be recognized by a long press gesture recognizer.
§Arguments
-
recognizer- Indicates the pointer to a gesture recognizer. -
allowableMovement- Indicates maximum moving distance.
§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: 22