| com.google.android.gms.awareness.state.Weather |
Weather conditions at the device's current location.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Weather.TemperatureUnit | Valid units of temperature in which temperature measurements should be returned. | ||||||||||
| Weather.WeatherCondition | Valid values for weather conditions that can be reported in getConditions(). |
||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CELSIUS | Celsius temperature unit. | |||||||||
| int | CONDITION_CLEAR | Clear weather condition. | |||||||||
| int | CONDITION_CLOUDY | Cloudy weather condition. | |||||||||
| int | CONDITION_FOGGY | Foggy weather condition. | |||||||||
| int | CONDITION_HAZY | Hazy weather condition. | |||||||||
| int | CONDITION_ICY | Icy weather condition. | |||||||||
| int | CONDITION_RAINY | Rainy weather condition. | |||||||||
| int | CONDITION_SNOWY | Snowy weather condition. | |||||||||
| int | CONDITION_STORMY | Stormy weather condition. | |||||||||
| int | CONDITION_UNKNOWN | Unknown weather condition. | |||||||||
| int | CONDITION_WINDY | Windy weather condition. | |||||||||
| int | FAHRENHEIT | Fahrenheit temperature unit. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the current weather conditions as an array of values that best
describe the current conditions.
| |||||||||||
Returns the dew point at the device's current location.
| |||||||||||
Returns what temperature a person would feel is at the device's current location.
| |||||||||||
Returns the humidity level at the device's current location.
| |||||||||||
Returns the current temperature at the device's current location.
| |||||||||||
Celsius temperature unit.
Clear weather condition.
Cloudy weather condition.
Foggy weather condition.
Hazy weather condition.
Icy weather condition.
Rainy weather condition.
Snowy weather condition.
Stormy weather condition.
Unknown weather condition.
Windy weather condition.
Fahrenheit temperature unit.
Returns the current weather conditions as an array of values that best
describe the current conditions. For example, rains with high winds will
be represented as a 2-element int array with values CONDITION_RAINY
and CONDITION_WINDY.
CONDITION_UNKNOWN,
CONDITION_CLEAR, CONDITION_CLOUDY, CONDITION_FOGGY,
CONDITION_HAZY, CONDITION_ICY, CONDITION_RAINY,
CONDITION_SNOWY, CONDITION_STORMY, or CONDITION_WINDY.
Returns the dew point at the device's current location.
| temperatureUnit | One of the supported temperature units: FAHRENHEIT
or CELSIUS. |
|---|
| IllegalArgumentException} An invalid value was passed for . |
Returns what temperature a person would feel is at the device's current location.
| temperatureUnit | One of the supported temperature units: FAHRENHEIT
or CELSIUS. |
|---|
| IllegalArgumentException} An invalid value was passed for . |
Returns the humidity level at the device's current location.
Returns the current temperature at the device's current location.
| temperatureUnit | One of the supported temperature units: FAHRENHEIT
or CELSIUS. |
|---|
| IllegalArgumentException} An invalid value was passed for . |