OH_ArkUI_List_CloseAllSwipeActions

Function OH_ArkUI_List_CloseAllSwipeActions 

Source
pub unsafe extern "C" fn OH_ArkUI_List_CloseAllSwipeActions(
    node: ArkUI_NodeHandle,
    userData: *mut c_void,
    onFinish: Option<unsafe extern "C" fn(userData: *mut c_void)>,
) -> i32
Available on crate feature api-12 only.
Expand description

Collapse the ListItem in its expanded state.

§Arguments

  • node - Node objects that need to be registered for events.

  • userData - Custom event parameters are carried back in the callback parameter when the event is triggered.

  • onFinish - The callback triggered after the completion of the folding animation.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_ATTRIBUTE_OR_EVENT_NOT_SUPPORTED] The component does not support this event.

Available since API-level: 12