Skip to main content

WeatherCondition

Enum

Types of weather returned by UserContextSystem's callback.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • 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