కంటెంట్‌కు వెళ్లండి

జెనరిక్ టెంప్లేట్

బిల్డ్‌లు, డౌన్‌లోడ్‌లు, డిప్లాయ్‌మెంట్‌లు మరియు ఏదైనా దీర్ఘకాలిక టాస్క్‌కు అనుకూలమైన ఒక సౌకర్యవంతమైన పురోగతి-ఆధారిత టెంప్లేట్.

లైవ్ యాక్టివిటీ ప్రదర్శన

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

ఒక జెనరిక్ యాక్టివిటీని ప్రారంభించండి
{
  "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 సమీక్ష కోసం వేచి ఉన్న యాప్ అప్‌డేట్‌లోని ఒక ఫీచర్‌ను ఈ విభాగం వివరిస్తుంది. అప్‌డేట్ విడుదల కాగానే ఇది ఇక్కడ స్వయంచాలకంగా అన్‌లాక్ అవుతుంది.