鸿蒙OpenHarmony Native API【Native_Bundle】
Native_Bundle
Overview
Description:
Describes the Native Bundle.
Since:
9
Version:
1.0
Summary
Files
File Name | Description |
---|---|
[native_interface_bundle.h] | 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.
原文地址:https://blog.csdn.net/2301_76813281/article/details/140576743
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!