OH_ArkUI_GetPanGestureDirectionMask

Function OH_ArkUI_GetPanGestureDirectionMask 

Source
pub unsafe extern "C" fn OH_ArkUI_GetPanGestureDirectionMask(
    recognizer: *mut ArkUI_GestureRecognizer,
    directionMask: *mut ArkUI_GestureDirectionMask,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains the direction of a pan gesture.

§Arguments

  • recognizer - Indicates the pointer to a gesture recognizer.

  • directionMask - Indicates the pan direction.

§Returns

  • Returns [ARKUI_ERROR_CODE_NO_ERROR] if success. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter exception occurs.

Available since API-level: 12