pub unsafe extern "C" fn OH_ArkUI_SurfaceHolder_SetUserData(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
userData: *mut c_void,
) -> i32Available on crate feature
api-19 only.Expand description
Saves custom data on the OH_ArkUI_SurfaceHolder instance.
§Arguments
-
surfaceHolder- Indicates the OH_ArkUI_SurfaceHolder instance on which the custom data will be saved. -
userData- Indicates the custom data to be saved.
§Returns
- Returns the error code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 19