WeatherCondition
EnumTypes of weather returned by UserContextSystem's callback.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Index
Example
var userContextSystem = global.userContextSystem;
userContextSystem.requestWeatherCondition(function(weather) {
if (weather == WeatherCondition.Sunny) {
print("It's a sunny day!");
}
});
Enumeration Members
ClearNight
ClearNight:
number
Clear Night
Cloudy
Cloudy:
number
Cloudy
Hail
Hail:
number
Hail
Lightning
Lightning:
number
Lightning
LowVisibility
LowVisibility:
number
Low Visibility
PartlyCloudy
PartlyCloudy:
number
Partly Cloudy
Rainy
Rainy:
number
Rainy
Snow
Snow:
number
Snow
Sunny
Sunny:
number
Sunny
Unknown
Unknown:
number
Unknown or unsupported weather condition
Windy
Windy:
number
Windy