Structs§
- ArkUI_
Drawable Descriptor - Native
Resource Manager - RawDir
- RawFile
- RawFile64
- @brief Provides access to a raw file.
- RawFile
Descriptor - @brief Represent the raw file descriptor’s info.
- RawFile
Descriptor64 - @brief Represent the raw file descriptor’s info.
- Resource
Manager_ Configuration - @brief Enumerates device configuration.
Constants§
- Resource
Manager_ Color Mode_ COLOR_ MODE_ DARK - Indicates dark mode.
- Resource
Manager_ Color Mode_ COLOR_ MODE_ LIGHT - Indicates light mode.
- Resource
Manager_ Device Type_ DEVICE_ TYPE_ 2IN1 - Indicates a 2in1 device.
- Resource
Manager_ Device Type_ DEVICE_ TYPE_ CAR - Indicates a car.
- Resource
Manager_ Device Type_ DEVICE_ TYPE_ PC - Indicates a PC.
- Resource
Manager_ Device Type_ DEVICE_ TYPE_ PHONE - Indicates a phone.
- Resource
Manager_ Device Type_ DEVICE_ TYPE_ TABLET - Indicates a tablet.
- Resource
Manager_ Device Type_ DEVICE_ TYPE_ TV - Indicates a smart TV.
- Resource
Manager_ Device Type_ DEVICE_ TYPE_ WEARABLE - Indicates a wearable device.
- Resource
Manager_ Direction_ DIRECTION_ HORIZONTAL - Indicates the horizontal direction.
- Resource
Manager_ Direction_ DIRECTION_ VERTICAL - Indicates the vertical direction.
- Resource
Manager_ Error Code_ ERROR_ CODE_ INVALID_ INPUT_ PARAMETER - @error Invalid input parameter
- Resource
Manager_ Error Code_ ERROR_ CODE_ OUT_ OF_ MEMORY - @error Out of memory
- Resource
Manager_ Error Code_ ERROR_ CODE_ OVERLAY_ RES_ PATH_ INVALID - @error Invalid overlay path
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ ID_ FORMAT_ ERROR - @error Failed to format the resource obtained based on the resource ID
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ ID_ NOT_ FOUND - @error Invalid resource ID
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ NAME_ FORMAT_ ERROR - @error Failed to format the resource obtained based on the resource Name
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ NAME_ NOT_ FOUND - @error No matching resource is found based on the resource ID
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ NOT_ FOUND_ BY_ ID - @error Invalid resource name
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ NOT_ FOUND_ BY_ NAME - @error No matching resource is found based on the resource name
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ PATH_ INVALID - @error Invalid relative path
- Resource
Manager_ Error Code_ ERROR_ CODE_ RES_ REF_ TOO_ MUCH - @error The resource is referenced cyclically
- Resource
Manager_ Error Code_ ERROR_ CODE_ SYSTEM_ RES_ MANAGER_ GET_ FAILED - @error Failed to access the system resource
- Resource
Manager_ Error Code_ SUCCESS - @error Success
- Screen
Density_ SCREEN_ LDPI - Indicates large screen density.
- Screen
Density_ SCREEN_ MDPI - Indicates medium screen density.
- Screen
Density_ SCREEN_ SDPI - Indicates small screen density.
- Screen
Density_ SCREEN_ XLDPI - Indicates extra-large screen density.
- Screen
Density_ SCREEN_ XXLDPI - Indicates extra-extra-large screen density.
- Screen
Density_ SCREEN_ XXXLDPI - Indicates extra-extra-extra-large screen density.
Functions§
- OH_
Resource ⚠Manager_ AddResource - @brief Add overlay resources during application runtime. @param mgr Indicates the pointer to {@link NativeResourceManager} {@link OH_ResourceManager_InitNativeResourceManager}. @param path Indicates the application overlay path. @return {@link SUCCESS} 0 - Success. {@link ERROR_CODE_INVALID_INPUT_PARAMETER} 401 - The input parameter invalid. Possible causes: Incorrect parameter types. {@link ERROR_CODE_OVERLAY_RES_PATH_INVALID} 9001010 - Invalid overlay path. @since 12
- OH_
Resource ⚠Manager_ Close RawDir - @brief Closes an opened {@link RawDir} and releases all associated resources.
- OH_
Resource ⚠Manager_ Close RawFile - @brief Closes an opened {@link RawFile} and releases all associated resources.
- OH_
Resource ⚠Manager_ Close RawFile64 - @brief Closes an opened {@link RawFile64} and releases all associated resources.
- OH_
Resource ⚠Manager_ GetBool - @brief Obtains the boolean result.
- OH_
Resource ⚠Manager_ GetBool ByName - @brief Obtains the boolean result.
- OH_
Resource ⚠Manager_ GetColor - @brief Obtains the color resource.
- OH_
Resource ⚠Manager_ GetColor ByName - @brief Obtains the color resource.
- OH_
Resource ⚠Manager_ GetConfiguration - @brief Obtains the device configuration.
- OH_
Resource ⚠Manager_ GetDrawable Descriptor - @brief Obtains the DrawableDescriptor of the media file.
- OH_
Resource ⚠Manager_ GetDrawable Descriptor ByName - @brief Obtains the DrawableDescriptor of the media file.
- OH_
Resource ⚠Manager_ GetDrawable Descriptor Data - @brief Obtains the DrawableDescriptor of the media file.
- OH_
Resource ⚠Manager_ GetDrawable Descriptor Data ByName - @brief Obtains the DrawableDescriptor of the media file.
- OH_
Resource ⚠Manager_ GetFloat - @brief Obtains the Float resource.
- OH_
Resource ⚠Manager_ GetFloat ByName - @brief Obtains the Float resource.
- OH_
Resource ⚠Manager_ GetInt - @brief Obtains the Int resource.
- OH_
Resource ⚠Manager_ GetInt ByName - @brief Obtains the Int resource.
- OH_
Resource ⚠Manager_ GetLocales - @brief Obtains locales list.
- OH_
Resource ⚠Manager_ GetLocales Data - @brief Obtains locales list.
- OH_
Resource ⚠Manager_ GetMedia - @brief Obtains the content of the image resource.
- OH_
Resource ⚠Manager_ GetMedia Base64 - @brief Obtains the Base64 code of the image resource.
- OH_
Resource ⚠Manager_ GetMedia Base64 ByName - @brief Obtains the Base64 code of the image resource.
- OH_
Resource ⚠Manager_ GetMedia Base64 Data - @brief Obtains the Base64 code of the image resource.
- OH_
Resource ⚠Manager_ GetMedia Base64 Data ByName - @brief Obtains the Base64 code of the image resource.
- OH_
Resource ⚠Manager_ GetMedia ByName - @brief Obtains the content of the image resource.
- OH_
Resource ⚠Manager_ GetMedia Data - @brief Obtains the content of the image resource.
- OH_
Resource ⚠Manager_ GetMedia Data ByName - @brief Obtains the content of the image resource.
- OH_
Resource ⚠Manager_ GetPlural String - @brief Obtains the singular-plural character string represented.
- OH_
Resource ⚠Manager_ GetPlural String ByName - @brief Obtains the singular-plural character string represented.
- OH_
Resource ⚠Manager_ GetRaw File Count - @brief get the count of the raw files in {@link RawDir}.
- OH_
Resource ⚠Manager_ GetRaw File Descriptor - @brief Opens the file descriptor of a raw file based on the long offset and file length.
- OH_
Resource ⚠Manager_ GetRaw File Descriptor64 - @brief Opens the file descriptor of a raw file based on the int64_t offset and file length.
- OH_
Resource ⚠Manager_ GetRaw File Descriptor Data - @brief Obtains the file descriptor of a raw file based on the long offset and file length.
- OH_
Resource ⚠Manager_ GetRaw File Name - @brief Obtains the name of the file according to the index.
- OH_
Resource ⚠Manager_ GetRaw File Offset - @brief Obtains the current offset of a raw file, represented by an long.
- OH_
Resource ⚠Manager_ GetRaw File Offset64 - @brief Obtains the current offset of a raw file, represented by an int64_t.
- OH_
Resource ⚠Manager_ GetRaw File Remaining Length - @brief Obtains the remaining raw file length represented by an long.
- OH_
Resource ⚠Manager_ GetRaw File Remaining Length64 - @brief Obtains the remaining raw file length represented by an int64_t.
- OH_
Resource ⚠Manager_ GetRaw File Size - @brief Obtains the raw file length represented by an long.
- OH_
Resource ⚠Manager_ GetRaw File Size64 - @brief Obtains the raw file length represented by an int64_t.
- OH_
Resource ⚠Manager_ GetString - @brief Obtains the character string.
- OH_
Resource ⚠Manager_ GetString Array - @brief Obtains the array of character strings.
- OH_
Resource ⚠Manager_ GetString Array ByName - @brief Obtains the array of character strings.
- OH_
Resource ⚠Manager_ GetString ByName - @brief Obtains the character string.
- OH_
Resource ⚠Manager_ GetSymbol - @brief Obtains the symbol resource.
- OH_
Resource ⚠Manager_ GetSymbol ByName - @brief Obtains the symbol resource.
- OH_
Resource ⚠Manager_ Init Native Resource Manager - @brief Obtains the native resource manager based on the JavaScipt resource manager.
- OH_
Resource ⚠Manager_ IsRaw Dir - @brief Whether the rawfile resource is a directory or not.
- OH_
Resource ⚠Manager_ Open RawDir - @brief Opens a raw file directory.
- OH_
Resource ⚠Manager_ Open RawFile - @brief Opens a raw file.
- OH_
Resource ⚠Manager_ Open RawFile64 - @brief Opens a raw file.
- OH_
Resource ⚠Manager_ Read RawFile - @brief Reads a raw file.
- OH_
Resource ⚠Manager_ Read RawFile64 - @brief Reads a raw file.
- OH_
Resource ⚠Manager_ Release Configuration - @brief Release the device configuration. @param configuration the object need to release. @return {@link SUCCESS} 0 - Success. {@link ERROR_CODE_INVALID_INPUT_PARAMETER} 401 - The input parameter invalid. Possible causes: Incorrect parameter types. @since 12
- OH_
Resource ⚠Manager_ Release Native Resource Manager - @brief Releases the native resource manager.
- OH_
Resource ⚠Manager_ Release RawFile Descriptor - @brief Closes the file descriptor of a raw file.
- OH_
Resource ⚠Manager_ Release RawFile Descriptor64 - @brief Closes the file descriptor of a raw file.
- OH_
Resource ⚠Manager_ Release RawFile Descriptor Data - @brief Release the file descriptor of a raw file.
- OH_
Resource ⚠Manager_ Release String Array - @brief Release the array of character strings. @param resValue the array of character strings corresponding to the specified resource name. @param len the length of array. @return {@link SUCCESS} 0 - Success. {@link ERROR_CODE_INVALID_INPUT_PARAMETER} 401 - The input parameter invalid. Possible causes: Incorrect parameter types. @since 12
- OH_
Resource ⚠Manager_ Remove Resource - @brief Remove overlay resources during application runtime. @param mgr Indicates the pointer to {@link NativeResourceManager} {@link OH_ResourceManager_InitNativeResourceManager}. @param path Indicates the application overlay path. @return {@link SUCCESS} 0 - Success. {@link ERROR_CODE_INVALID_INPUT_PARAMETER} 401 - The input parameter invalid. Possible causes: Incorrect parameter types. {@link ERROR_CODE_OVERLAY_RES_PATH_INVALID} 9001010 - Invalid overlay path. @since 12
- OH_
Resource ⚠Manager_ Seek RawFile - @brief Uses the 32-bit data type to seek a data read position based on the specified offset within a raw file.
- OH_
Resource ⚠Manager_ Seek RawFile64 - @brief Uses the 64-bit data type to seek a data read position based on the specified offset within a raw file.
Type Aliases§
- Resource
Manager_ Color Mode - @brief Enumerates color mode types.
- Resource
Manager_ Device Type - @brief Enumerates device types.
- Resource
Manager_ Direction - @brief Enumerates screen directions.
- Resource
Manager_ Error Code - @brief The error code of resource manager.
- Screen
Density - @brief Enumerates screen density types.