OH_ArkUI_NativeModule_UnregisterCommonEvent

Function OH_ArkUI_NativeModule_UnregisterCommonEvent 

Source
pub unsafe extern "C" fn OH_ArkUI_NativeModule_UnregisterCommonEvent(
    node: ArkUI_NodeHandle,
    eventType: ArkUI_NodeEventType,
) -> i32
Available on crate features api-12 and api-21 only.
Expand description

Unregister common event callback of target node.

§Arguments

  • node - The ArkUI-NodeHandle pointer.

  • eventType - Indicates the type of event to set.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] Function params is invalid. Returns [ARKUI_ERROR_CODE_NODE_UNSUPPORTED_EVENT_TYPE] Function parameter eventType is not supported.

Available since API-level: 21