isTracking | boolean | true when a flight is active or paused |
isPaused | boolean | true when the active flight is paused |
simDisconnected | boolean | Tracking is suspended: the continuity gate asserted the flight is no longer continuous (socket drop that didn’t classify as a continued flight, sustained menu, or an in-stream position jump). Only resumeFlight() clears it. |
reconnecting | boolean | A gap is open (sim disconnected or in a menu) and Stratos is waiting for frames to classify it. The flight may still be active. |
suspendReason | string | null | Reason tracking is suspended; null when not suspended. |
autoStartWaitReason | string | null | Why auto-start has not started a flight yet, as a sentence fragment (for example the aircraft is 260 nm from CYUL, the nearest booked departure); null when auto-start is off, not polling, or a flight is active. Show it near the bookings list so the pilot knows what auto-start is waiting for. |
currentFlight | CurrentFlight | null | Full flight state object, or null when idle |
pendingRecovery | RecoverableFlight | null | A previous flight that can be recovered, if one exists |
elapsedTime | number | Elapsed flight time in milliseconds, updating every second |
phase | FlightPhase | Current flight phase (defaults to FlightPhase.BOARDING when idle) |
startFlight | Function | Start a new flight; accepts optional start options |
pauseFlight | () => Promise<boolean> | Pause the active flight |
resumeFlight | () => Promise<boolean> | Resume a paused flight |
endFlight | (status?) => Promise<{ success, error? }> | End the active flight |
network | string | Pilot-reported online network for the current flight ("offline" when none selected). |
setNetwork | (network: string) => Promise<boolean> | Set the pilot-reported online network. Resolves false when no flight is in progress. |
recoverFlight | () => Promise<boolean> | Recover a previously interrupted flight |
dismissRecovery | () => Promise<boolean> | Dismiss the pending recovery prompt |
isLoading | boolean | true during the initial REST hydration |