1# bundle 2 3 4## Overview 5 6The bundle module provides APIs for querying application information. 7 8**System capability**: SystemCapability.BundleManager.BundleFramework.Core 9 10**Since**: 9 11 12 13## Summary 14 15 16### Files 17 18| Name| Description| 19| -------- | -------- | 20| [native_interface_bundle.h](native__interface__bundle.md) | Provides application information structs and functions.<br>**File to include**: <bundle/native_interface_bundle.h><br>**Library**: libbundle_ndk.z.so| 21 22 23### Structs 24 25| Name| Description| 26| -------- | -------- | 27| [OH_NativeBundle_ApplicationInfo](_o_h___native_bundle_application_info.md) | Describes the application information.| 28| [OH_NativeBundle_ElementName](_o_h___native_bundle_element_name.md) | Describes the application entry information.| 29 30 31 32### Functions 33 34| Name| Description| 35| -------- | -------- | 36| [OH_NativeBundle_GetCurrentApplicationInfo](#oh_nativebundle_getcurrentapplicationinfo) | Obtains the current application information.| 37| [OH_NativeBundle_GetAppId](#oh_nativebundle_getappid) | Obtains the appId information about the current application.| 38| [OH_NativeBundle_GetAppIdentifier](#oh_nativebundle_getappidentifier) | Obtains the appIdentifier information about the current application.| 39| [OH_NativeBundle_GetMainElementName](#oh_nativebundle_getmainelementname) | Obtains the entry information about the current application.| 40| [OH_NativeBundle_GetCompatibleDeviceType](_bundle.md#oh_nativebundle_getcompatibledevicetype) | Obtains the compatible device type of the current application.| 41 42 43## Function Description 44 45 46### OH_NativeBundle_GetCurrentApplicationInfo() 47 48``` 49OH_NativeBundle_ApplicationInfo OH_NativeBundle_GetCurrentApplicationInfo() 50``` 51 52**Description** 53 54Obtains the current application information. 55 56**Since**: 9 57 58**Returns** 59 60Returns the [OH_NativeBundle_ApplicationInfo](_o_h___native_bundle_application_info.md) struct. 61 62### OH_NativeBundle_GetAppId() 63 64``` 65char* OH_NativeBundle_GetAppId() 66``` 67 68**Description** 69 70Obtains the appId information about the current application. 71 72**Since**: 11 73 74**Returns** 75 76Returns a string that describes the appId information of the application. 77 78### OH_NativeBundle_GetAppIdentifier() 79 80``` 81char* OH_NativeBundle_GetAppIdentifier() 82``` 83 84**Description** 85 86Obtains the appIdentifier information about the current application. appIdentifier is the unique ID of the application, which is allocated by the cloud. This ID does not change along the application lifecycle, including version updates, certificate changes, public and private key changes, and application transfers. 87 88**Since**: 11 89 90**Returns** 91 92Returns a string that describes the appIdentifier information of the application. 93 94### OH_NativeBundle_GetMainElementName() 95 96``` 97OH_NativeBundle_ElementName OH_NativeBundle_GetMainElementName() 98``` 99 100**Description** 101 102Obtains the application entry information, including the bundle name, module name, and ability name. 103 104**Since**: 13 105 106**Returns** 107 108Returns the [OH_NativeBundle_ElementName](_o_h___native_bundle_element_name.md) struct. 109 110### OH_NativeBundle_GetCompatibleDeviceType() 111 112``` 113char* OH_NativeBundle_GetCompatibleDeviceType() 114``` 115 116**Description** 117 118Obtains the compatible device type of the application. 119 120**Since**: 14 121 122**Returns** 123 124Returns a string indicating the compatible device type. 125