Skip to main content

OH_NativeXComponent_RegisterSurfaceShowCallback

Function OH_NativeXComponent_RegisterSurfaceShowCallback 

Source
pub unsafe extern "C" fn OH_NativeXComponent_RegisterSurfaceShowCallback(
    component: *mut OH_NativeXComponent,
    callback: Option<unsafe extern "C" fn(component: *mut OH_NativeXComponent, window: *mut c_void)>,
) -> i32
Available on crate feature api-12 only.
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 show event callback.

§Returns

  • Returns the status code of the execution.

Available since API-level: 12

Version: 1.0