Lens Scripting API

    Enumeration WeatherCondition

    Types of weather returned by UserContextSystem's callback.

    var userContextSystem = global.userContextSystem;

    userContextSystem.requestWeatherCondition(function(weather) {
    if (weather == WeatherCondition.Sunny) {
    print("It's a sunny day!");
    }
    });
    Index

    Enumeration Members

    ClearNight: number

    Clear Night

    Cloudy: number

    Cloudy

    Hail: number

    Hail

    Lightning: number

    Lightning

    LowVisibility: number

    Low Visibility

    PartlyCloudy: number

    Partly Cloudy

    Rainy: number

    Rainy

    Snow: number

    Snow

    Sunny: number

    Sunny

    Unknown: number

    Unknown or unsupported weather condition

    Windy: number

    Windy

    MMNEPVFCICPMFPCPTTAAATR