मजकुराकडे जा

Generic टेम्पलेट

बिल्ड, डाउनलोड, डिप्लॉयमेंट आणि कोणत्याही दीर्घकाळ चालणाऱ्या कार्यासाठी योग्य असे लवचिक प्रगती-आधारित टेम्पलेट.

लाइव्ह ॲक्टिव्हिटी प्रात्यक्षिक

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 पुनरावलोकनाच्या प्रतीक्षेत असलेल्या ॲप अपडेटमधील एका वैशिष्ट्याचे वर्णन करतो. अपडेट थेट होताच ते इथे आपोआप अनलॉक होईल.