# Native_Bundle ## **Overview** **Description:** Describes the Native Bundle. **Since:** 9 **Version:** 1.0 ## **Summary** ### Files | File Name | Description | | -------- | -------- | | [native_interface_bundle.h](native__interface__bundle_8h.md) | Declares the **Bundle**-specific function, including function for obtaining application ID. | ### Functions | Function | Description | | -------- | -------- | | OH_NativeBundle_GetAppIdByBundleName (const char \*bundleName) | char \*
Obtains the application ID based on the given bundle name. | ## **Details** ## **Function** ### OH_NativeBundle_GetAppIdByBundleName() ``` char* OH_NativeBundle_GetAppIdByBundleName (const char * bundleName) ``` **Description:** Obtains the application ID based on the given bundle name. **Parameters:** | Name | Description | | -------- | -------- | | bundleName | Indicates the bundle name of the application. | **Returns:** Returns the application ID pointer if successfully obtained and needs to be freed; returns nullptr otherwise.