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

    Interface PluginSourceInputs

    What a feature's page hook hands pluginSourcePage.

    interface PluginSourceInputs {
        category: string;
        insert?: PluginSourceInsert;
        item: string;
        messageKeys: Record<string, number>;
        movesBelow?: string;
        panel?: boolean;
        pluginByDefault?: boolean;
        plugins: PluginSummary[] | null;
        rowKind?: string;
        saved?: unknown;
        selectKey?: string;
        sourceExtra?: string;
        standard: StandardReadings;
        state: SourceState;
        texts: PluginSourceTexts;
    }
    Index
    category: string

    The category the feature subscribes to, such as weather.

    The select to add when the face's page has none, as the calendar does.

    item: string

    The item inside it, such as location.

    messageKeys: Record<string, number>

    The face's message keys, by name.

    movesBelow?: string

    The messageKey of a row whose section only feeds the other sources, such as LOCATION_USE_GPS. While a plugin choice is on offer, that section moves to sit straight after the select's own, so the rows the select hides sit below it rather than above.

    panel?: boolean

    Whether the page gets the supported plugins panel at its foot, listing the plugins that serve this item. It goes on whenever the face offers the plugin choice, with plugins on or off.

    pluginByDefault?: boolean

    Whether the page opens on the plugin, for a choice the wearer has never saved while a plugin on the phone serves the item. The feature reads such a choice as the plugin too, so the page shows the source the watch is getting, and its first save keeps it.

    plugins: PluginSummary[] | null

    The installed plugins, as the subscription's plugins() reads them, or null when the phone's list cannot be read. An unreadable list still offers the plugin, since the phone may route to one.

    rowKind?: string

    The kind as a face's pluginSourceRows mark and the plugin kinds store name it, which is its name in the providers list, such as stocks. Left out, the category, which is the same name for every other kind.

    saved?: unknown

    The select's saved value. A saved plugin choice keeps its option while no plugin serves the item.

    selectKey?: string

    The messageKey of the select the plugin choice joins, such as WEATHER_PROVIDER. Left out for a kind with no source choice, which gets its notes alone.

    sourceExtra?: string

    A line to join on to whichever source line wins, the feature's or the face's, such as a note on coordinates.

    The readings a plugin has to declare for the face to read it.

    What the subscription saved, from its state().

    The feature's own wording for each warning row.