• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# native_interface.h
2
3
4## Overview
5
6Provides a unified entry for the native module APIs.
7
8**Library**: libace_ndk.z.so
9
10**File to include**: <arkui/native_interface.h>
11
12**System capability**: SystemCapability.ArkUI.ArkUI.Full
13
14**Since**: 12
15
16**Related module**: [ArkUI_NativeModule](_ark_u_i___native_module.md)
17
18
19## Summary
20
21
22### Macros
23
24| Name| Description|
25| -------- | -------- |
26| [OH_ArkUI_GetModuleInterface](_ark_u_i___native_module.md#oh_arkui_getmoduleinterface)(nativeAPIVariantKind, structType, structPtr) | Obtains the macro function corresponding to a struct pointer based on the struct type. |
27
28
29### Enums
30
31| Name| Description|
32| -------- | -------- |
33| [ArkUI_NativeAPIVariantKind](_ark_u_i___native_module.md#arkui_nativeapivariantkind) { [ARKUI_NATIVE_NODE](_ark_u_i___native_module.md), [ARKUI_NATIVE_DIALOG](_ark_u_i___native_module.md), [ARKUI_NATIVE_GESTURE](_ark_u_i___native_module.md), [ARKUI_NATIVE_ANIMATE](_ark_u_i___native_module.md) } | Defines the native API types. |
34
35
36### Functions
37
38| Name| Description|
39| -------- | -------- |
40| void \* [OH_ArkUI_QueryModuleInterfaceByName](_ark_u_i___native_module.md#oh_arkui_querymoduleinterfacebyname) ([ArkUI_NativeAPIVariantKind](_ark_u_i___native_module.md#arkui_nativeapivariantkind) type, const char \*structName) | Obtains the native API set of a specified type. |
41