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

    Interface MusicFeature

    The now playing feature, plus the form of it that also sends album art.

    interface MusicFeature {
        messageKeys?: readonly string[];
        withArtwork(size: ImageSize): Feature;
        (context: FeatureContext): FeatureHooks;
    }

    Hierarchy (View Summary)

    Index
    messageKeys?: readonly string[]

    The message keys the feature cannot run without, such as the four weather keys. paf build reads them from the compiled phone code and adds each one the face does not list to its messageKeys, after the face's own, so a face that passes the feature never lists them. Left out, it needs none.

    • The now playing feature for a face that shows album art.

      The art comes at the size given or smaller, and each side is held from 1 to 100 pixels. Its message holds 3 + colours + ceil(w / 2) * h bytes, 16 colours at most, so a 28 square takes 411 bytes, a 40 square 819, and a 64 square 2,067. The watch's inbox has to hold that and about 8 bytes more for the message around it.

      Parameters

      • size: ImageSize

        The largest art the face draws, in pixels, such as { w: 40, h: 40 }.

      Returns Feature

      A feature to pass to startPebbleApp in place of the plain one.