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

    Function createClay

    • Builds the face's Clay settings page with every component it needs registered.

      That is the framework's rules for the whole page, the location autocomplete, which config.ts names as type "locationsearch", and Clay's own text box and select for the search and the theme picker to take their look from. Then the theme picker and the hidden store for a page that holds one, and the components the face passes. A face that still passes the hidden store keeps the one it passed. startPebbleApp builds the phone's page here, and the dev plugin's clay-preview builds its copy here too, so the two always register the same components.

      Clay's custom function is put together the way prepareSettingsPage puts it together on each open, the framework's show and hide for a page with a visibleWhen row and then the face's customClay. A customClay that is not a function stops the build with Clay's own error, and an arrow gets a warning, since it cannot take the page as this.

      Parameters

      • options: StartOptions

        The face's Clay config, its customClay, and its own components.

      Returns {}

      The Clay page, ready to open or to turn into a URL.