OH_ArkUI_FocusRequest

Function OH_ArkUI_FocusRequest 

Source
pub unsafe extern "C" fn OH_ArkUI_FocusRequest(
    node: ArkUI_NodeHandle,
) -> ArkUiResult
Available on crate feature api-15 only.
Expand description

Apply focus for a specific node.

§Arguments

  • node - The node.

§Returns

  • The error code. [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_FOCUS_NON_FOCUSABLE] if the node is not focusable. [ARKUI_ERROR_CODE_FOCUS_NON_FOCUSABLE_ANCESTOR] if the node has unfocusable ancestor. [ARKUI_ERROR_CODE_FOCUS_NON_EXISTENT] if the node is not exists.

Available since API-level: 15