_native___bundle.md 1.2 KB
Newer Older
Z
zengyawen 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
# 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&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. | 


## **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&nbsp;the&nbsp;bundle&nbsp;name&nbsp;of&nbsp;the&nbsp;application. | 

**Returns:**

Returns the application ID pointer if successfully obtained and needs to be freed; returns nullptr otherwise.