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

    Function customClayShape

    • Sorts a face's customClay by whether the page can run it with the page as this.

      Anything falsy is no customClay at all. A function whose text starts with the word function, a plain, named, or async one, can take the page as this. Any other function cannot, such as an arrow, which sees the this around it, or a method shorthand, whose text starts with its own name and is not a function expression on the page. A bound function's text reads as a plain function whatever it wraps, so it passes. The phone and the build both sort it here, so they never disagree.

      Parameters

      • customClay: unknown

        What the face handed startPebbleApp as its customClay.

      Returns CustomClayShape

      none, plain, not-plain, or not-function.