arkui_sys::ui_input_event

Function OH_ArkUI_UIInputEvent_GetAction

Source
pub unsafe extern "C" fn OH_ArkUI_UIInputEvent_GetAction(
    event: *const ArkUI_UIInputEvent,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains the action type of this UI input event.

§Arguments

event - Indicates the pointer to the current UI input event.

§Returns

Returns the action type of the current UI input event; returns 0 if any parameter error occurs.

Available since API-level: 12