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

    Interface FetchControls<Reading>

    What a feature hands its kind's plugin driver: how it sends a reading, and how it fetches while the plugin is not the wearer's choice. The driver decides which of the two runs, and the feature keeps only the fetch it has always had.

    interface FetchControls<Reading> {
        imageSize?: ImageSize;
        afterSave(run: () => void): void;
        askFetch(): void;
        fetch(force: boolean): void;
        forget(): void;
        send(reading: Reading): void;
        shutOut(): void;
        slowFetch(): void;
    }

    Type Parameters

    • Reading

    Hierarchy (View Summary)

    Index
    imageSize?: ImageSize

    The size the face wants the kind's images at, such as now playing art. Left out, it asks for none.

    • Runs something once the wait after a settings save has passed.

      Parameters

      • run: () => void

      Returns void

    • Starts the fetch a ready or a watch ask calls for, unless another ask just did.

      Returns void

    • Starts a fetch round, the way the feature does on a face without plugins.

      Parameters

      • force: boolean

      Returns void

    • Drops a fetch round still out, so its answer cannot land over the plugin's.

      Returns void

    • Starts the fetch a slow tick calls for, unless an ask just covered it.

      Returns void