Skip to main content

OH_ArkUI_DrawableDescriptor_SetAnimationAutoPlay

Function OH_ArkUI_DrawableDescriptor_SetAnimationAutoPlay 

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

Sets whether to play the animation automatically.

§Arguments

  • drawableDescriptor - Indicates the pointer to the drawableDescriptor.

  • autoPlay - Indicates whether to play the animation automatically. default value is 1, which means to play the animation automatically. value 0 means not 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