Pebble App Framework: Phone API
    Preparing search index...
    default: {
        appFahrenheit: (
            envelope: SourceEnvelope | null | undefined,
        ) => boolean | undefined;
        appWindUnit: (
            envelope: SourceEnvelope | null | undefined,
        ) => number | undefined;
        readingUnits: (
            envelope: SourceEnvelope | null | undefined,
            app: AppUnits,
        ) => ReadingUnits;
        WEATHER_TEXTS: PluginSourceTexts;
        weatherErrorStatus: (code: string | null | undefined) => string | undefined;
        weatherFromUpdate: (
            envelope: SourceEnvelope | null | undefined,
            options: WeatherMappingOptions,
        ) => WeatherResult;
        weatherProperties: (fields: string[], wantForecast: boolean) => string[];
    }

    Type Declaration

    • appFahrenheit: (envelope: SourceEnvelope | null | undefined) => boolean | undefined
    • appWindUnit: (envelope: SourceEnvelope | null | undefined) => number | undefined
    • readingUnits: (envelope: SourceEnvelope | null | undefined, app: AppUnits) => ReadingUnits
    • WEATHER_TEXTS: PluginSourceTexts

      The weather page hook's rows, which show only while the plugin is picked. On a face whose providers list is the plugin alone they always show, and the one for no plugin joins them.

    • weatherErrorStatus: (code: string | null | undefined) => string | undefined
    • weatherFromUpdate: (
          envelope: SourceEnvelope | null | undefined,
          options: WeatherMappingOptions,
      ) => WeatherResult
    • weatherProperties: (fields: string[], wantForecast: boolean) => string[]