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

    Function text

    • Reads a property's text, from the shape the caller prefers or else the other.

      A blank text counts as missing, so a plugin that sends an empty longText beside a real shortText still gets its words read.

      Parameters

      • property: SourceProperty | undefined

        The property off an instance, which may be missing.

      • prefer: "long" | "short"

        Which text to read first, 'long' or 'short'.

      Returns string | undefined

      The text, or undefined when neither shape has any.