开源鸿蒙 Native_Bundle

  • 2022-08-09
  • 浏览 (637)

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.

你可能感兴趣的文章

开源鸿蒙 Native API

开源鸿蒙 Drawing

开源鸿蒙 HiLog

开源鸿蒙 NativeWindow

开源鸿蒙 OH_Drawing_BitmapFormat

开源鸿蒙 Native XComponent

开源鸿蒙 OH_NativeXComponent_Callback

开源鸿蒙 OH_NativeXComponent_TouchEvent

开源鸿蒙 OH_NativeXComponent_TouchPoint

开源鸿蒙 RawFileDescriptor

0  赞