openharmony 鸿蒙 js-apis-sendableResource

2025-06-12 浏览 (1)

SendableResource

The SendableResource module provides sendable resource information, such as the application bundle name, application module name, and resource ID.

NOTE

The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.

Import a module.

import { resourceManager } from '@kit.LocalizationKit';

SendableResource

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.Global.ResourceManager

NameTypeRead-OnlyOptionalDescription
bundleNamestringNoNoBundle name of the application.
moduleNamestringNoNoModule name of the application.
idnumberNoNoResource ID.
paramscollections.Array<string |number>NoYesOther resource parameters, including the resource name, substitution value for the formatting API, and quantifier for the singular-plural formatting API.
typenumberNoYesResource type.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Localization Kit

harmony 鸿蒙RawFileDescriptor

harmony 鸿蒙RawFileDescriptor64

harmony 鸿蒙ResourceManager_Configuration

harmony 鸿蒙Font Management Error Codes

harmony 鸿蒙I18N Error Codes

harmony 鸿蒙Resource Manager Error Codes

harmony 鸿蒙@ohos.fontManager (Font Management)

harmony 鸿蒙@ohos.i18n (Internationalization) (System API)

harmony 鸿蒙@ohos.i18n (Internationalization)

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/JPYSIs