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

    Interface ChoiceOptions

    What a kind's driver hands the shared part.

    interface ChoiceOptions {
        category: string;
        iconPixelSize?: ImageSize;
        item: string;
        limit?: number;
        only: boolean;
        properties: string[];
        onError?(error: SourceError): void;
        onLeft?(): void;
        onUpdate(envelope: SourceEnvelope): void;
        pickedIn(config: Record<string, unknown>): boolean;
        shutOut(): void;
    }
    Index
    category: string

    The category the subscription asks for, such as calendar.

    iconPixelSize?: ImageSize

    The size the kind wants images at, which asks the plugin for them. Left out, none.

    item: string

    The item inside it, such as event.

    limit?: number

    The most instances the kind wants back, from 1 to SOURCE_LIMIT_MAX. Left out, the phone gives its own number.

    only: boolean

    Whether the plugin is the face's only source, so it is picked whatever is saved.

    properties: string[]

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

    • Hands the kind to its other source at once, when an update or an error finds the choice off the plugin while its subscription still runs. That is a choice moved off the plugin with no save after it, or a choice never saved once the phone stops serving the item, such as with plugins turned off. Left out, the slow tick or the watch's next ask does it.

      Returns void

    • Whether some settings pick the plugin.

      Parameters

      • config: Record<string, unknown>

      Returns boolean

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

      Returns void