The trips in paging order. Omit for the illustrated itinerary, pass null when trips are unavailable, or pass [] for an empty schedule.
referenceTimeMsnumber (optional)
Fixed clock in Unix milliseconds for controlled previews or host-provided time. Otherwise the widget reads the device clock.
indexnumber (optional)
Offsets the illustration entrance in a widget grid.
Data and integration
Preview
Three fictional trips with a local departure schedule and one revised departure.
Inputs
Each trip needs a stable id and a destination. Optional country, origin and flightNumber add context. Supply departureAt for the original departure, updatedDepartureAt for a revised time, and departureTimeZone for the departure airport. Optional status is scheduled, departed or cancelled. Optional accent is sky, amber, teal or violet.
Source options
Map reservation and flight updates into the same trip id. Supply absolute timestamps in Unix milliseconds. Convert provider strings with explicit offsets. The local time label uses the IANA time zone supplied by the host and falls back to UTC if absent or invalid.
Actions
Use the dots or swipe to change trips. Open Trip details for flight information, both departure times when revised, and the departure time zone.
Integration requirements
The widget counts down to the revised departure when available and also shows the original in Trip details when it differs. The timer uses 24-hour days. It shows days and hours for longer waits, hours and minutes within a day, and less than one minute when appropriate. Displayed units round down. When the clock reaches the departure, the widget says the departure time passed. The host supplies departed or cancelled status. A missing timestamp leaves the departure pending. The earliest future scheduled trip is selected initially and the chosen id stays selected while it remains available. Paging follows the order supplied. Empty ids, empty destinations and later duplicate ids are skipped.