mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
feat(native): a flight widget and a boarding-pass Live Activity
A new Flight widget on iOS (small to large and the lock screen) and Android shows the trip's next flight or the one in the air: both airports, the arc with the aircraft, a countdown the system keeps running, and the delay. It follows the feed's phase, so a late departure is not flown along the arc. Around a flight the travel day's Live Activity becomes a boarding pass with a running bar and countdown, in the Dynamic Island too.
This commit is contained in:
@@ -106,6 +106,18 @@ export interface TrekShellPlugin {
|
||||
nextMinutes?: number;
|
||||
/** Android: each stop's colour (#rrggbb) for the Live Update's segments. */
|
||||
colors?: (string | null)[];
|
||||
/** iOS: the day's flight near or in the air, drawn as a boarding pass; older binaries ignore it. */
|
||||
flight?: {
|
||||
number: string;
|
||||
from: string;
|
||||
to: string;
|
||||
dep: number;
|
||||
arr: number;
|
||||
depTime: string;
|
||||
arrTime: string;
|
||||
delay?: number;
|
||||
airborne?: boolean;
|
||||
};
|
||||
}): Promise<{ running: boolean }>;
|
||||
endTripDay(): Promise<void>;
|
||||
/** Feature storeKit (iOS) or playBilling (Android): the store's price strings for the products it knows. */
|
||||
|
||||
Reference in New Issue
Block a user