FlightDataDownloaderState

@objcMembers
@objc(GSFlightDataDownloaderState)
public class FlightDataDownloaderState : NSObject

State of the flight data (PUD) downloader. Informs about latest count of successfully downloaded flight data files, as well as the completion status of the flight data files (PUDs) download.

  • Current completion status of the flight data (PUD) downloader.

    The completion status changes to either .interrupted or .success when the download has been interrupted or completes successfully, then remains in this state until another flight data (PUD) download begins, where it switches back to .none.

    Declaration

    Swift

    public internal(set) var status: FlightDataDownloadCompletionStatus { get }
  • Latest count of successfully downloaded flight data files.

    While downloading, this counter is incremented for each successfully downloaded flight data file. Once download is over (either FlightDataDownloadCompletionStatus.success or because FlightDataDownloadCompletionStatus.interrupted). Then it will keep its latest value, until flight data files download starts again, where it will be reset to 0.

    Declaration

    Swift

    public internal(set) var latestDownloadCount: Int { get }