自学内容网 自学内容网

鸿蒙OpenHarmony Native API【Native_Bundle】

Native_Bundle

Overview

Description:

Describes the Native Bundle.

Since:

9

Version:

1.0

Summary

Files

File NameDescription
[native_interface_bundle.h]Declares the Bundle-specific function, including function for obtaining application ID.

Functions

FunctionDescription
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:

NameDescription
bundleNameIndicates 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)!