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
  • 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 which is an entry point for work with the SDK.

    Set SkyPath.shared.delegate to get callbacks from the SDK when new data is available, an action failed, and others. SDK should be started by calling the start(...) method before it can record, fetch and provide data. To get data you can use query-based methods like turbulence(with:).

    Check out the SkyPath iOS SDK Documentation

    See more

    Declaration

    Swift

    public class SkyPath