native_interface_bundle.h

Overview

The native_interface_bundle.h file declares the APIs for querying application information.

Since

9

Related Modules

bundle

Summary

Structs

Name Description
OH_NativeBundle_ApplicationInfo Defines the application information.

Functions

Name Description
OH_NativeBundle_GetCurrentApplicationInfo Obtains the information about the current application.
OH_NativeBundle_GetAppId Obtains the appId information about the current application.
OH_NativeBundle_GetAppIdentifier Obtains the appIdentifier information about the current application.

Function Description

OH_NativeBundle_GetCurrentApplicationInfo()

OH_NativeBundle_ApplicationInfo OH_NativeBundle_GetCurrentApplicationInfo()

Description

Obtains the information about the current application.

Since: 9

Returns

Returns the OH_NativeBundle_ApplicationInfo struct.

OH_NativeBundle_GetAppId()

char* OH_NativeBundle_GetAppId()

Description

Obtains the appId information about the current application.

Since: 11

Returns

Returns a string that describes the appId information of the application.

OH_NativeBundle_GetAppIdentifier()

char* OH_NativeBundle_GetAppIdentifier()

Description

Obtains the appIdentifier information about the current application. appIdentifier is the unique ID of the application, which is allocated by the cloud. This ID does not change along the application lifecycle, including version updates, certificate changes, public and private key changes, and application transfers.

Since: 11

Returns

Returns a string that describes the appIdentifier information of the application.