Skip to main content

OH_ArkUI_DrawableDescriptor_GetAnimationAutoPlay

Function OH_ArkUI_DrawableDescriptor_GetAnimationAutoPlay 

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

Obtains whether to play the animation automatically.

§Arguments

  • drawableDescriptor - Indicates the pointer to the drawableDescriptor.

  • autoPlay - Indicates whether to play the animation automatically.

§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