Skip to main content

OH_ArkUI_DrawableDescriptor_SetAnimationFrameDurations

Function OH_ArkUI_DrawableDescriptor_SetAnimationFrameDurations 

Source
pub unsafe extern "C" fn OH_ArkUI_DrawableDescriptor_SetAnimationFrameDurations(
    drawableDescriptor: *mut ArkUI_DrawableDescriptor,
    durations: *mut u32,
    size: usize,
) -> i32
Available on crate features api-12 and api-22 only.
Expand description

Sets the frame duration array.

§Arguments

  • drawableDescriptor - Indicates the pointer to the drawableDescriptor.

  • durations - Indicates the pointer to the frame duration array.

  • size - Indicates the size of the frame duration array.

§Returns

  • 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: 22