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

    Function readSourceChoice

    • The source a kind's choice reads as, in lower case, following freshPlugin for a choice never saved.

      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.

      • fallback: string

        The face's default for the choice.

      • serving: () => boolean

        Whether a plugin on the phone serves the kind now.

      Returns string

      The saved choice, or for one never saved, the plugin while one serves the kind and else the default.