सामग्री पर जाएँ

Generic Template

builds, downloads, deployments, और किसी भी लंबे चलने वाले कार्य के लिए उपयुक्त एक लचीला प्रगति-आधारित template।

लाइव ऐक्टिविटी प्रदर्शन

Fields

FieldTypeDescription
templatestringRequired. Must be "generic"
progressfloatRequired. Value between 0.0 and 1.0; shown as a percentage in the top-right corner
statestringShort status text (e.g. "Building...", "Complete")
iconstringSF Symbol name (e.g. "arrow.triangle.branch", "washer") or MDI icon with mdi: prefix (e.g. "mdi:washing-machine", "mdi:thermometer")
remaining_timeintegerRemaining time in seconds, shown as a countdown alongside the progress bar
subtitlestringSecondary text below the progress bar
accent_colorstringNamed color or hex (e.g. "cyan", "#00BCD4")
background_colorstringBackground color override
text_colorstringText color override
ऐप संस्करण 1.3.3 में आ रहा है
ऐप संस्करण 1.7.0 में आ रहा है
ऐप संस्करण 1.14.0 में आ रहा है

Renders url_action and secondary_url_action as buttons beneath the progress bar, and treats taps on the rest of the card as tap_action -- see Tap actions.

Example Payload

एक generic activity शुरू करें
{
  "state": "ongoing",
  "content": {
    "template": "generic",
    "progress": 0.65,
    "state": "Washing",
    "icon": "washer",
    "remaining_time": 1800,
    "subtitle": "Cycle 2 of 3",
    "accent_color": "blue"
  }
}

Live progress

ऐप संस्करण 1.3.3 में आ रहा है

यह अनुभाग एक ऐप अपडेट की उस सुविधा का वर्णन करता है जो App Store समीक्षा के लिए लंबित है। अपडेट लाइव होते ही यह यहाँ अपने आप अनलॉक हो जाएगा।

ऐप संस्करण 1.7.0 में आ रहा है

यह अनुभाग एक ऐप अपडेट की उस सुविधा का वर्णन करता है जो App Store समीक्षा के लिए लंबित है। अपडेट लाइव होते ही यह यहाँ अपने आप अनलॉक हो जाएगा।