OH_NativeXComponent_RegisterCallback

Function OH_NativeXComponent_RegisterCallback 

Source
pub unsafe extern "C" fn OH_NativeXComponent_RegisterCallback(
    component: *mut OH_NativeXComponent,
    callback: *mut OH_NativeXComponent_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 surface lifecycle and touch event callback.

§Returns

  • Returns the status code of the execution.

Available since API-level: 8

Version: 1.0