pub unsafe extern "C" fn OH_ArkUI_SurfaceHolder_SetSurfaceConfig(
surfaceHolder: *mut OH_ArkUI_SurfaceHolder,
config: *mut ArkUI_XComponentSurfaceConfig,
) -> i32Available on crate feature
api-22 only.Expand description
Set surface config for this OH_ArkUI_SurfaceHolder instance.
§Arguments
-
surfaceHolder- Indicates the pointer to this OH_ArkUI_SurfaceHolder instance. -
config- Indicates the pointer to the XComponent’s surface config.
§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: 22