OH_ArkUI_Curve_CreateStepsCurve

Function OH_ArkUI_Curve_CreateStepsCurve 

Source
pub unsafe extern "C" fn OH_ArkUI_Curve_CreateStepsCurve(
    count: i32,
    end: bool,
) -> ArkUI_CurveHandle
Available on crate feature api-12 only.
Expand description

Creates a step curve.

§Arguments

  • count - Indicates the number of steps. The value must be a positive integer. Value range: [1, +∞).

  • end - Indicates whether jumping occurs when the interpolation ends. true: Jumping occurs when the interpolation ends. false: Jumping occurs when the interpolation starts.

§Returns

  • Returns the pointer to the interpolation object of the curve. Returns NULL if a parameter error occurs.

Available since API-level: 12