• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# native_interface_focus.h
2
3
4## Overview
5
6Declares the APIs of **NativeFocus**.
7
8**Library**: libace_ndk.z.so
9
10**File to include**: <arkui/native_interface_focus.h>
11
12**System capability**: SystemCapability.ArkUI.ArkUI.Full
13
14**Since**: 16
15
16**Related module**: [ArkUI_NativeModule](_ark_u_i___native_module.md)
17
18
19## Summary
20
21### Functions
22
23| Name| Description|
24| -------- | -------- |
25|[ArkUI_ErrorCode](_ark_u_i___native_module.md#arkui_errorcode)  OH_ArkUI_FocusRequest([ArkUI_NodeHandle](_ark_u_i___native_module.md#arkui_nodehandle) node); | Requests focus for a specific node.|
26| void OH_ArkUI_FocusClear([ArkUI_ContextHandle](_ark_u_i___native_module.md#arkui_contexthandle-12) uiContext); | Clears the focus to the root container node.|
27| void OH_ArkUI_FocusActivate([ArkUI_ContextHandle](_ark_u_i___native_module.md#arkui_contexthandle-12) uiContext, bool isActive, bool isAutoInactive); | Sets the focus activation state for the current page. When activated, the focused node displays a focus box.|
28| void OH_ArkUI_FocusSetAutoTransfer([ArkUI_ContextHandle](_ark_u_i___native_module.md#arkui_contexthandle-12) uiContext, bool autoTransfer); | Configures the focus transfer behavior when pages are switched.|
29