1# ohresmgr.h
2
3
4## Overview
5
6Provides native APIs for obtaining resources.
7
8**System capability**: SystemCapability.Global.ResourceManager
9
10**Library**: libohresmgr.so
11
12**Since**: 12
13
14**Related module**: [Resourcemanager](resourcemanager.md)
15
16
17## Summary
18
19
20### Callback
21
22| Name| Description|
23| -------- | -------- |
24| [ResourceManager_ErrorCode](resourcemanager.md#resourcemanager_errorcode)[OH_ResourceManager_GetMediaBase64](resourcemanager.md#oh_resourcemanager_getmediabase64) (const NativeResourceManager \*mgr, uint32_t resId, char \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | Obtains the Base64 code of the media resource with the specified screen density based on the specified resource ID. |
25| [ResourceManager_ErrorCode](resourcemanager.md#resourcemanager_errorcode)[OH_ResourceManager_GetMediaBase64ByName](resourcemanager.md#oh_resourcemanager_getmediabase64byname) (const NativeResourceManager \*mgr, const char \*resName, char \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | Obtains the Base64 code of the media resource with the specified screen density based on the specified resource name. |
26| [ResourceManager_ErrorCode](resourcemanager.md#resourcemanager_errorcode)[OH_ResourceManager_GetMedia](resourcemanager.md#oh_resourcemanager_getmedia) (const NativeResourceManager \*mgr, uint32_t resId, uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | Obtains the content of the media resource with the specified screen density based on the specified resource ID. |
27| [ResourceManager_ErrorCode](resourcemanager.md#resourcemanager_errorcode)[OH_ResourceManager_GetMediaByName](resourcemanager.md#oh_resourcemanager_getmediabyname) (const NativeResourceManager \*mgr, const char \*resName, uint8_t \*\*resultValue, uint64_t \*resultLen, uint32_t density=0) | Obtains the content of the media resource with the specified screen density based on the specified resource name. |
28| [ResourceManager_ErrorCode](resourcemanager.md#resourcemanager_errorcode)[OH_ResourceManager_GetDrawableDescriptor](resourcemanager.md#oh_resourcemanager_getdrawabledescriptor) (const NativeResourceManager \*mgr, uint32_t resId, ArkUI_DrawableDescriptor \*\*drawableDescriptor, uint32_t density=0, uint32_t type=0) | Obtains the **DrawableDescriptor** object of the icon resource with the specified screen density based on the specified resource ID. |
29| [ResourceManager_ErrorCode](resourcemanager.md#resourcemanager_errorcode)[OH_ResourceManager_GetDrawableDescriptorByName](resourcemanager.md#oh_resourcemanager_getdrawabledescriptorbyname) (const NativeResourceManager \*mgr, const char \*resName, ArkUI_DrawableDescriptor \*\*drawableDescriptor, uint32_t density=0, uint32_t type=0) | Obtains the **DrawableDescriptor** object of the icon resource with the specified screen density based on the specified resource name. |
30