• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SendableResource
2
3The **SendableResource** module provides sendable resource information, such as the application bundle name, application module name, and resource ID.
4
5> **NOTE**
6>
7> 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.
8
9## Import a module.
10
11```js
12import { resourceManager } from '@kit.LocalizationKit';
13```
14
15## SendableResource
16
17**Atomic service API**: This API can be used in atomic services since API version 12.
18
19**System capability**: SystemCapability.Global.ResourceManager
20
21| Name        | Type    | Read-Only  | Optional |Description         |
22| ---------- | ------ | ----- | ----  | ---------------|
23| bundleName | string | No   | No| Bundle name of the application.|
24| moduleName | string | No   | No| Module name of the application.|
25| id         | number | No   | No| Resource ID.     |
26| params     | collections.Array<string \| number> | No   | Yes| Other resource parameters, including the resource name, substitution value for the formatting API, and quantifier for the singular-plural formatting API.     |
27| type       | number | No   | Yes| Resource type.     |
28