DataUpdateFrequency

public enum DataUpdateFrequency : String, Codable

It controls time intervals to fetch data for global turbulence polygons, route polygons, viewport, and other data.

When the data query route polygon or the viewport is changed, they are fetched as fast as possible not waiting for the next time interval. The default is fast.

Usage example:

SkyPath.shared.dataUpdateFrequency = .fast

To save network traffic, you can set it to none to disable periodic new data fetch from the server at all or set it to minimal to update with bigger time intervals. At first, the whole data for configured DataHistoryTime will be fetched and then only the difference will be received every time interval cycle.

Each case has a predefined time interval that you can’t change. At the moment, there are no differences between minimal, medium, and fast, but it’s subject to future change.

fast is recommended to use which is also set by default.

  • No data will be fetched from the server.

    Can be used when the app is in recording-only mode or when the SkyPath map layer is hidden or not available along with disabled turbulence alerts.

    Declaration

    Swift

    case none
  • New data from the server will be fetched every 1 minute.

    Declaration

    Swift

    case minimal
  • New data from the server will be fetched every 1 minute.

    Declaration

    Swift

    case medium
  • New data from the server will be fetched every 1 minute. This one is used by default.

    Declaration

    Swift

    case fast