Skip to main content

OH_ArkUI_DrawableDescriptor_GetAnimationFrameDurations

Function OH_ArkUI_DrawableDescriptor_GetAnimationFrameDurations 

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

Obtains 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