OH_NativeXComponent_RegisterSurfaceHideCallback

Function OH_NativeXComponent_RegisterSurfaceHideCallback 

Source
pub unsafe extern "C" fn OH_NativeXComponent_RegisterSurfaceHideCallback(
    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 hide event callback.

§Returns

  • Returns the status code of the execution.

Available since API-level: 12

Version: 1.0