pub unsafe extern "C" fn OH_ArkUI_SurfaceHolder_AddSurfaceCallback(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
callback: *mut OH_ArkUI_SurfaceCallback,
) -> i32Available on crate feature
api-19 only.Expand description
Adds a surface lifecycle callback for this OH_ArkUI_SurfaceHolder instance.
§Arguments
-
surfaceHolder- Indicates the pointer to this OH_ArkUI_SurfaceHolder instance. -
callback- Indicates the pointer to this new callback.
§Returns
- Returns the status code of the execution.
[
ARKUI_ERROR_CODE_NO_ERROR] the execution is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 19