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

    Function picturesForWatch

    • The one platform's shots a theme would draw on a watch, the same choice the picker makes.

      The picker draws the watch's own list when the theme has a non-empty one, and otherwise the first list the theme carries, which is also what it draws when it does not know the watch. Keeping only that list leaves the page drawing exactly what it would have drawn with all of them. A flat list is the same on every watch, so it stays as it is.

      Parameters

      • pictures: ThemePreviewPictures

        One theme's pictures, a list or a map of lists by platform.

      • platform: string

        The watch the page opens on, such as emery, or empty when it is not known.

      Returns ThemePreviewPictures

      The pictures, with a map cut down to the one list the picker would draw.