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

    Interface ReadingMapping<Reading>

    What a kind's mapping hands its driver.

    interface ReadingMapping<Reading> {
        category: string;
        empty: Reading;
        imageProperties?: string[];
        item: string;
        noPlugin?: Reading;
        properties: string[];
        requestKey: string;
        standard: StandardReadings;
        texts: PluginSourceTexts;
        fromUpdate(
            envelope: SourceEnvelope | null | undefined,
            imageSize?: ImageSize,
        ): Reading;
    }

    Type Parameters

    • Reading
    Index
    category: string

    The category the subscription asks for, such as music.

    empty: Reading

    The reading for nothing to show yet, which the watch clears its panel to.

    imageProperties?: string[]

    The properties that carry images, asked for only when the face wants them at a size, such as artwork.

    item: string

    The item inside it, such as track.

    noPlugin?: Reading

    The reading for no plugin serving the kind, which the watch clears its panel to as well and can tell apart from empty. It goes for a clearing error and for a plugin list with nothing serving the kind. Left out, empty stands in.

    properties: string[]

    The properties the kind reads, which the phone takes as a hint.

    requestKey: string

    The watch's ask for the reading, such as MUSIC_REQUEST, by name.

    The readings a plugin has to declare for the face to read it.

    The page hook's wording.