arkui_sys::native_animate

Function OH_ArkUI_KeyframeAnimateOption_GetCurve

Source
pub unsafe extern "C" fn OH_ArkUI_KeyframeAnimateOption_GetCurve(
    option: *mut ArkUI_KeyframeAnimateOption,
    index: i32,
) -> ArkUI_CurveHandle
Available on crate feature api-12 only.
Expand description

Obtains the animation curve of a specific state in a keyframe animation.

§Arguments

option - Indicates the keyframe animation parameters.

index - Indicates a state index.

§Returns

Returns the animated curve. Returns NULL if a parameter error occurs.

Available since API-level: 12