harmony 鸿蒙native_interface_focus.h
native_interface_focus.h
Overview
Declares the APIs of NativeFocus.
Library: libace_ndk.z.so
File to include:
System capability: SystemCapability.ArkUI.ArkUI.Full
Since: 15
Related module: ArkUI_NativeModule
Summary
ArkUI_KeyProcessingMode
enum ArkUI_KeyProcessingMode
Description
Sets the mode for processing key events when a component cannot process them.
Since: 15
Name | Description |
---|---|
ARKUI_KEY_PROCESSING_MODE_FOCUS_NAVIGATION | Key events are used for focus navigation. Default value. |
ARKUI_KEY_PROCESSING_MODE_FOCUS_ANCESTOR_EVENT | Key events are propagated upwards to the ancestor components. |
Functions
Name | Description |
---|---|
ArkUI_ErrorCode OH_ArkUI_FocusRequest(ArkUI_NodeHandle node); | Requests focus for a specific node. |
void OH_ArkUI_FocusClear(ArkUI_ContextHandle uiContext); | Clears the focus to the root container node. |
void OH_ArkUI_FocusActivate(ArkUI_ContextHandle uiContext, bool isActive, bool isAutoInactive); | Sets the focus activation state for the current page. When activated, the focused node displays a focus box. |
void OH_ArkUI_FocusSetAutoTransfer(ArkUI_ContextHandle uiContext, bool autoTransfer); | Configures the focus transfer behavior when pages are switched. |
void OH_ArkUI_FocusSetKeyProcessingMode(ArkUI_ContextHandle uiContext, ArkUI_KeyProcessingMode mode); | Configures the focus transfer behavior when pages are switched. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ARKUI_TextPickerCascadeRangeContent
harmony 鸿蒙ARKUI_TextPickerRangeContent
harmony 鸿蒙ArkUI_AnimateCompleteCallback
harmony 鸿蒙ArkUI_ContextCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦