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

    Function trackFromUpdate

    • Turns one music plugin update into the track the watch shows.

      The title and the artist prefer the longText, since the plugin guide sizes a shortText at about 7 characters and the watch holds 32. An update with no instance is nothing playing.

      Parameters

      • envelope: SourceEnvelope | null | undefined

        The update, which may be missing or carry anything.

      • OptionalartSize: ImageSize

        The size the face asked for album art at, or undefined for a face that wants none.

      Returns MusicTrack

      The track, or the empty one for nothing playing. With an art size it carries the art, or null for none.