OH_ArkUI_RenderNodeUtils_SetContentModifierOnDraw

Function OH_ArkUI_RenderNodeUtils_SetContentModifierOnDraw 

Source
pub unsafe extern "C" fn OH_ArkUI_RenderNodeUtils_SetContentModifierOnDraw(
    modifier: ArkUI_RenderContentModifierHandle,
    userData: *mut c_void,
    callback: Option<unsafe extern "C" fn(context: *mut ArkUI_DrawContext, userData: *mut c_void)>,
) -> i32
Available on crate feature api-20 only.
Expand description

Set the onDraw function of the content modifier.

§Arguments

  • modifier - The target content modifier handle.

  • userData - Custom data to be passed to the callback.

  • callback - The draw event receiver callback.

§Returns

  • Error code. [ARKUI_ERROR_CODE_NO_ERROR] Success. [ARKUI_ERROR_CODE_PARAM_INVALID] Function parameter exception. [ARKUI_ERROR_CODE_CAPI_INIT_ERROR] if CAPI init error.

Available since API-level: 20