Pebble App Framework: Phone API
    Preparing search index...

    Interface WeatherControls

    What the weather feature hands its plugin driver, beside the fetch controls.

    interface WeatherControls {
        fields: string[];
        imageSize?: ImageSize;
        settingKeys: string[];
        wantForecast: boolean;
        withCoords: boolean;
        afterSave(run: () => void): void;
        askFetch(): void;
        fetch(force: boolean): void;
        forget(): void;
        savePending(): boolean;
        send(reading: WeatherResult): void;
        shutOut(): void;
        slowFetch(): void;
        useUnit(fahrenheit: () => boolean): void;
    }

    Hierarchy (View Summary)

    Index
    fields: string[]

    The reading fields the face shows, such as humidity, named as on WeatherResult.

    imageSize?: ImageSize

    The size the face wants the kind's images at, such as now playing art. Left out, it asks for none.

    settingKeys: string[]

    Every weather setting whose change is worth a refetch after a save, the feature's WEATHER_KEYS.

    wantForecast: boolean

    Whether the face shows the forecast strips.

    withCoords: boolean

    Whether the face shows coordinates, which a weather plugin serves only as latitude and longitude when it has them.

    • Whether a save's refetch is still waiting to run, which reads the unit only when it does.

      Returns boolean

    • Has every later fetch ask its provider in the unit this reads, rather than the face's saved setting. The driver calls it only for a face with no temperature unit of its own.

      Parameters

      • fahrenheit: () => boolean

      Returns void