• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Native_Bundle
2
3
4## **Overview**
5
6**Description:**
7
8Describes the Native Bundle.
9
10**Since:**
11
129
13
14**Version:**
15
161.0
17
18
19## **Summary**
20
21
22### Files
23
24  | File Name | Description |
25| -------- | -------- |
26| [native_interface_bundle.h](native__interface__bundle_8h.md) | Declares the **Bundle**-specific function, including function for obtaining application ID. |
27
28
29### Functions
30
31  | Function | Description |
32| -------- | -------- |
33| OH_NativeBundle_GetAppIdByBundleName&nbsp;(const&nbsp;char&nbsp;\*bundleName) | char&nbsp;\*<br/>Obtains&nbsp;the&nbsp;application&nbsp;ID&nbsp;based&nbsp;on&nbsp;the&nbsp;given&nbsp;bundle&nbsp;name. |
34
35
36## **Details**
37
38
39## **Function**
40
41
42### OH_NativeBundle_GetAppIdByBundleName()
43
44
45```
46char* OH_NativeBundle_GetAppIdByBundleName (const char * bundleName)
47```
48
49**Description:**
50
51Obtains the application ID based on the given bundle name.
52
53**Parameters:**
54
55  | Name | Description |
56| -------- | -------- |
57| bundleName | Indicates&nbsp;the&nbsp;bundle&nbsp;name&nbsp;of&nbsp;the&nbsp;application. |
58
59**Returns:**
60
61Returns the application ID pointer if successfully obtained and needs to be freed; returns nullptr otherwise.
62