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

    Function recordOwners

    • Records whose each saved key row is, for a row holding a key with no owner on record. The row is the provider's saved beside it, or the default's when the select was never saved. The phone runs this at every launch, so a later launch that finds the default moved can move the row from its owner.

      A row saved on a page with one provider and no select has only the default to go by, and the phone cannot know an older default. When the launch that records it also brings a list with a new first provider, the row is filed under that one, and the feature sends it that key, as one key row for every provider would. Nothing is lost, since the key stays held and the wearer moves it with one switch, which costs less than keeping a record of every default a face has had.

      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 its key rows and the providers each hides for.

      Returns ProviderKeys | null

      A copy of the entries with each owner recorded, or null when none was missing.