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

    Function fileSavedRows

    • The keys with each saved key row filed under the provider picked, for a save from the page or a settings restore from the watch, where the row and the provider arrive together.

      The key row's value is the picked provider's key, so it wins over what the store held for that provider, and a blank one files a blank key, so a key the wearer cleared stays cleared. A row saved on a blank select is its owner's on record, and with none it is the spare itself, so a blank one clears the spare. A row saved under a provider it hides for is kept as the spare when it holds a key.

      Parameters

      • held: ProviderKeys

        Every select's entry so far.

      • settings: Record<string, unknown>

        The saved settings, as Clay keeps them.

      • defaults: Record<string, unknown>

        The page's defaults, for a select the settings leave out.

      • page: ClayConfigItem[]

        The face's page, read for the key rows on it and the providers each hides for.

      Returns ProviderKeys

      A copy of the entries with each row filed and its owner recorded.