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
See morerollingFrequency
andmaximumNumberOfLogFiles
.Declaration
Swift
public class Logger
-
Helper for showing local notifications. For example, a turbulence alert when the app is in the background.
See moreDeclaration
Swift
public class SPLocalNotificationManager
-
Generated cluster exists until no turbulence can be added to this cluster. The cluster is dynamically updated.
See moreDeclaration
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 orreset()
is called.Usage example:
See moreprivate let alertClusterer = TurbulenceClusterer() ... alertClusterer.process(turbulence: alertResult.turbulence)
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 thestart(...)
method before it can record, fetch and provide data. To get data you can use query-based methods liketurbulence(with:)
.Check out the SkyPath iOS SDK Documentation
See moreDeclaration
Swift
public class SkyPath