> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version.
...
@@ -18,12 +18,12 @@ Obtains the **ResourceManager** object of this application. This method uses a c
...
@@ -18,12 +18,12 @@ Obtains the **ResourceManager** object of this application. This method uses a c
| SCREEN_SDPI | 120 | Screen density with small-scale dots per inch (SDPI).<br>**System capability**: SystemCapability.Global.ResourceManager|
| Name | Default Value | Description |
| SCREEN_MDPI | 160 | Screen density with medium-scale dots per inch (MDPI).<br>**System capability**: SystemCapability.Global.ResourceManager|
| -------------- | ---- | ---------- |
| SCREEN_LDPI | 240 | Screen density with large-scale dots per inch (LDPI).<br>**System capability**: SystemCapability.Global.ResourceManager|
| SCREEN_SDPI | 120 | Screen density with small-scale dots per inch (SDPI). |
| SCREEN_XLDPI | 320 | Screen density with extra-large-scale dots per inch (XLDPI).<br>**System capability**: SystemCapability.Global.ResourceManager|
| SCREEN_MDPI | 160 | Screen density with medium-scale dots per inch (MDPI). |
| SCREEN_XXLDPI | 480 | Screen density with extra-extra-large-scale dots per inch (XXLDPI).<br>**System capability**: SystemCapability.Global.ResourceManager|
| SCREEN_LDPI | 240 | Screen density with large-scale dots per inch (LDPI). |
| SCREEN_XXXLDPI | 640 | Screen density with extra-extra-extra-large-scale dots per inch (XXXLDPI).<br>**System capability**: SystemCapability.Global.ResourceManager|
| SCREEN_XLDPI | 320 | Screen density with extra-large-scale dots per inch (XLDPI). |
| SCREEN_XXLDPI | 480 | Screen density with extra-extra-large-scale dots per inch (XXLDPI). |
| SCREEN_XXXLDPI | 640 | Screen density with extra-extra-extra-large-scale dots per inch (XXXLDPI).|
| screenDensity | [ScreenDensity](#screendensity) | Yes| No| Screen density of the device.<br>**System capability**: SystemCapability.Global.ResourceManager|
| screenDensity | [ScreenDensity](#screendensity) | Yes | No | Screen density of the device.|
| deviceType | [DeviceType](#devicetype) | Yes| No| Type of the device.<br>**System capability**: SystemCapability.Global.ResourceManager|
| deviceType | [DeviceType](#devicetype) | Yes | No | Type of the device. |
## RawFileDescriptor<sup>8+</sup>
## RawFileDescriptor<sup>8+</sup>
Defines the descriptor information of the raw file.
Defines the descriptor information of the raw file.<br>
> - The methods involved in **ResourceManager** are applicable only to the TypeScript-based declarative development paradigm.
> - The methods involved in **ResourceManager** are applicable only to the TypeScript-based declarative development paradigm.
>
>
> - Resource files are defined in the **resources** directory of the project. You can obtain the resource ID using **$r(resource address).id**, for example, **$r('app.string.test').id**.
> - Resource files are defined in the **resources** directory of the project. You can obtain the resource ID using **$r(resource address).id**, for example, **$r('app.string.test').id**.
...
@@ -209,13 +219,13 @@ Obtains the string corresponding to the specified resource ID. This method uses
...
@@ -209,13 +219,13 @@ Obtains the string corresponding to the specified resource ID. This method uses