OH_NativeXComponent_RegisterMouseEventCallback

Function OH_NativeXComponent_RegisterMouseEventCallback 

Source
pub unsafe extern "C" fn OH_NativeXComponent_RegisterMouseEventCallback(
    component: *mut OH_NativeXComponent,
    callback: *mut OH_NativeXComponent_MouseEvent_Callback,
) -> i32
Expand description

Registers a callback for this OH_NativeXComponent instance.

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • callback - Indicates the pointer to a mouse event callback.

§Returns

  • Returns the status code of the execution.

Available since API-level: 9

Version: 1.0