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

    Function seedValue

    • Turns one value off the watch into the form its settings page item stores, or undefined when it should not seed.

      The watch sends a toggle as 0 or 1 and a colour as a number, and Clay wants a real boolean and a number back. A slider holds a number too. Everything else a page offers, a select, an input, or a face's own builder, is stored as a string, and a select's value arrives as its number.

      Parameters

      • type: string

        The settings page item's type.

      • value: any

        The value the watch sent.

      Returns any

      The value to store, or undefined to leave the setting alone.