Classes

The following classes are available globally.

  • An internal logger system. Messages are written into text files stored in the application sandbox directory. No system logging like OSLog or a third-party solution is used, so should be no conflict if you use such. Old log files will be removed to save disk space. The time interval for rolling out files can be configured via rollingFrequency and maximumNumberOfLogFiles.

    See more

    Declaration

    Swift

    public class Logger
  • Helper for showing local notifications. For example, a turbulence alert when the app is in the background.

    See more

    Declaration

    Swift

    public class SPLocalNotificationManager : NSObject
  • Turbulence cluster. Generated cluster exists until no turbulence can be added to this cluster. The cluster is dynamically updated.

    See more

    Declaration

    Swift

    public class TurbulenceCluster : Equatable, Hashable
  • Group TurbulenceItem based on distance. New turbulence will be added to existing clusters or to new clusters. Clusters will be removed when become empty or reset() is called. Usage example:

    private let alertClusterer = TurbulenceClusterer()
    ...
    alertClusterer.process(turbulence: alertResult.turbulence)
    
    See more

    Declaration

    Swift

    public class TurbulenceClusterer
  • Use a shared instance SkyPath.shared. An entry point for work with the SDK. Set SkyPath.shared.delegate to get callbacks from the SDK when a new data is available, or an error etc. SDK should be started by calling start(...) method before it can record, fetch and provide data. To get data you can use query-based methods like turbulence(with:). See each function and property description as well as separate documentation available for more details on usage.

    See more

    Declaration

    Swift

    public class SkyPath