From 3e5fd2ba606ddec24186c54679a14a411dc6fa4e Mon Sep 17 00:00:00 2001 From: hct95 Date: Wed, 27 Nov 2024 16:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=BF=E6=96=B0=E5=A2=9ElimitFinger?= =?UTF-8?q?Count=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hct95 --- arkui/ace_engine/native/native_gesture.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arkui/ace_engine/native/native_gesture.h b/arkui/ace_engine/native/native_gesture.h index 42b37aa9c..7948c493e 100644 --- a/arkui/ace_engine/native/native_gesture.h +++ b/arkui/ace_engine/native/native_gesture.h @@ -493,6 +493,17 @@ int32_t OH_ArkUI_GetResponseRecognizersFromInterruptInfo(const ArkUI_GestureInte */ int32_t OH_ArkUI_SetGestureRecognizerEnabled(ArkUI_GestureRecognizer* recognizer, bool enabled); +/** +* @brief Sets the flag whether strictly verify the number of touch finger. +* +* @param recognizer Indicates the pointer to a gesture recognizer. +* @param limitFingerCount Indicates the limitFingerCount state. +* @return Returns {@link ARKUI_ERROR_CODE_NO_ERROR} if success. +* Returns {@link ARKUI_ERROR_CODE_PARAM_INVALID} if a parameter exception occurs. +* @since 16 +*/ +int32_t OH_ArkUI_SetGestureRecognizerLimitFingerCount(ArkUI_GestureRecognizer* recognizer, bool limitFingerCount); + /** * @brief Obtains the enabled state of a gesture recognizer. * -- Gitee