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

    Interface SubscriptionOptions

    What a feature hands a subscription.

    interface SubscriptionOptions {
        category: string;
        iconPixelSize?: ImageSize;
        item: string;
        limit?: number;
        properties?: string[];
        quickRetry?: boolean;
        onError(error: SourceError): void;
        onUpdate(envelope: SourceEnvelope): void;
    }
    Index
    category: string
    iconPixelSize?: ImageSize

    The size the feature wants images at, which asks the plugin for them. Left out, the phone asks for none, and a plugin draws none, since a bitmap costs it far more than text.

    item: string
    limit?: number

    The most instances the feature wants back, from 1 to SOURCE_LIMIT_MAX in ts/plugin-app/source-limit.ts. Left out, the request carries none, and the phone gives its own number for the item, such as the next 10 calendar events. A Pebble app from before 2.0.0 reads no limit and leaves it alone.

    properties?: string[]

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

    quickRetry?: boolean

    Whether the unit tries again every QUICK_RETRY_MS on its own while it sits idle. On unless set to false. With it off, the unit retries only on retryIfIdle, and retrySoon is one try rather than a window, for a source nothing on the watch waits on.