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

    Function freshPlugin

    • Whether a source choice the wearer has never saved starts on the plugin. It does while a plugin on the phone serves the kind, so a fresh install reads from a plugin the phone already has. Once the settings page is saved the stored value always stands. A choice never saved goes back to the face's default by itself once nothing serves the kind, such as after plugins go off.

      Every read of a kind's choice goes through here, the driver's and the settings page's alike, so the page opens on the source the watch is really getting.

      Parameters

      • config: Record<string, unknown>

        The settings to read, saved or about to be saved by a seed.

      • key: string

        The choice's message key, such as WEATHER_PROVIDER.

      • serving: () => boolean

        Whether a plugin on the phone serves the kind now. It is read only for a choice never saved.

      Returns boolean

      True only for a choice absent from the settings while a plugin serves the kind.