mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
!1623 提供NDK接口查询当前应用适用的设备类型
Merge pull request !1623 from liumingyue/add-bms-ndk
This commit is contained in:
commit
b7cc50b987
@ -145,6 +145,20 @@ char* OH_NativeBundle_GetAppIdentifier();
|
||||
* @since 13
|
||||
*/
|
||||
OH_NativeBundle_ElementName OH_NativeBundle_GetMainElementName();
|
||||
|
||||
/**
|
||||
* @brief Obtains the compatible device type of the current application.
|
||||
* After utilizing this interface, to prevent memory leaks,
|
||||
* it is necessary to manually release the pointer returned by the interface.
|
||||
*
|
||||
* @return Returns the newly created string that indicates the compatible device type,
|
||||
* if the returned object is NULL, it indicates creation failure.
|
||||
* The possible cause of failure could be that the application address space is full,
|
||||
* leading to space allocation failure.
|
||||
* @since 14
|
||||
* @version 1.0
|
||||
*/
|
||||
char* OH_NativeBundle_GetCompatibleDeviceType();
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
@ -14,5 +14,9 @@
|
||||
{
|
||||
"first_introduced": "13",
|
||||
"name": "OH_NativeBundle_GetMainElementName"
|
||||
},
|
||||
{
|
||||
"first_introduced": "14",
|
||||
"name": "OH_NativeBundle_GetCompatibleDeviceType"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user