OH_ArkUI_XComponent_SetExpectedFrameRateRange

Function OH_ArkUI_XComponent_SetExpectedFrameRateRange 

Source
pub unsafe extern "C" fn OH_ArkUI_XComponent_SetExpectedFrameRateRange(
    node: ArkUI_NodeHandle,
    range: OH_NativeXComponent_ExpectedRateRange,
) -> i32
Available on crate feature api-20 only.
Expand description

Set the Expected FrameRateRange for the XComponent node.

§Arguments

  • node - Indicates the pointer to the XComponent node.

  • range - Indicates the expected rate range.

§Returns

  • Returns the status code of the execution. [ARKUI_ERROR_CODE_NO_ERROR] the execution is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 20

Version: 1.0