| class info |
| public class Situation implements Parcelable |
| Current weather information. The information includes the weather ID, humidity, atmospheric temperature (Celsius and Fahrenheit), somatosensory temperature (Celsius and Fahrenheit), wind direction, wind level, wind speed, atmospheric pressure, UV intensity, and update time. |
Public Method Summary
Public Methods
| Method |
| public int getWeatherId() |
| Obtains the weather ID. Weather IDs vary with the current weather. For example, 1 indicates sunny, 7 indicates cloudy, and 18 indicates rain. For details about the weather information of different weather IDs, please refer to WeatherId. |
Return
| Method |
| public String getHumidity() |
| Obtains the air humidity, in percentage. |
Return
| Type | desc |
| String | Air humidity, in percentage. |
| Method |
| public long getTemperatureC() |
| Obtains the current temperature (Celsius). |
Return
| Type | desc |
| long | Current temperature (Celsius). |
| Method |
| public long getTemperatureF() |
| Obtains the current temperature (Fahrenheit). |
Return
| Type | desc |
| long | Current temperature (Fahrenheit). |
| Method |
| public long getRealFeelC() |
| Obtains the somatosensory temperature (Celsius). |
Return
| Type | desc |
| long | Somatosensory temperature (Celsius). |
| Method |
| public long getRealFeelF() |
| Obtains the somatosensory temperature (Fahrenheit). |
Return
| Type | desc |
| long | Somatosensory temperature (Fahrenheit). |
| Method |
| public String getWindDir() |
| Obtains the wind direction. The options are NE (northeast), E (east), SE (southeast), S (south), SW (southwest), W (west), N (northern), and NW (northwest). |
Return
| Type | desc |
| String | Wind direction. The options are NE (northeast), E (east), SE (southeast), S (south), SW (southwest), W (west), N (northern), and NW (northwest). |
| Method |
| public int getWindLevel() |
| Obtains the wind level. The value ranges from 0 to 17. 0: no wind |
Return
| Type | desc |
| int | Wind level. The value ranges from 0 to 17. 0: no wind |
| Method |
| public int getWindSpeed() |
| Obtains the wind speed (unit: km/h). |
Return
| Type | desc |
| long | Wind speed (unit: km/h). |
| Method |
| public long getUpdateTime() |
| Obtains the release time of the current weather. |
Return
| Type | desc |
| long | Release timestamp of the current weather. |
| Method |
| public long getPressure() |
| Obtains the atmospheric pressure, in hPa. |
Return
| Type | desc |
| long | Atmospheric pressure, in hPa. |
| Method |
| public int getUxIndex() |
| Obtains the current UV intensity. For details about the UV light levels, please refer to WeatherStatus. |
Return
This page may contain third-party content. For details, click
here.