OH_NativeXComponent_RegisterFocusEventCallback

Function OH_NativeXComponent_RegisterFocusEventCallback 

Source
pub unsafe extern "C" fn OH_NativeXComponent_RegisterFocusEventCallback(
    component: *mut OH_NativeXComponent,
    callback: Option<unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut c_void)>,
) -> 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 focus event callback.

§Returns

  • Returns the status code of the execution.

Available since API-level: 10

Version: 1.0