pub unsafe extern "C" fn OH_ArkUI_SurfaceHolder_RemoveSurfaceCallback(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
callback: *mut OH_ArkUI_SurfaceCallback,
) -> i32Available on crate feature
api-19 only.Expand description
Removes a previously added surface lifecycle callback from this OH_ArkUI_SurfaceHolder instance.
§Arguments
-
surfaceHolder- Indicates the pointer to this OH_ArkUI_SurfaceHolder instance. -
callback- Indicates the pointer to the callback needed to remove.
§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