TKUITripMonitorManager
@available(iOS 14.0, *)
public class TKUITripMonitorManager : NSObject
The manager for trip notifications such as “get off at the next stop” or “your trip is about to start”
Requirements:
- Project > Your Target > Capabilities > Background Modes: Enable “Location Updates”
- Project > Your Target > Info: Include both
NSLocationAlwaysAndWhenInUseUsageDescription
andNSLocationWhenInUseUsageDescription
- Then call
TKUINotificationManager.shared.subscribe(to: .tripAlerts) { ... }
in your app.
-
Undocumented
Declaration
Swift
@objc(sharedInstance) public static let shared: TKUITripMonitorManager
-
Undocumented
Declaration
Swift
public func getPreference(for trip: Trip) -> Bool
-
Undocumented
Declaration
Swift
public func setAlertsEnabled(_ enabled: Bool, for trip: Trip)
-
Undocumented
Declaration
Swift
public func monitorRegions(from trip: Trip)
-
Undocumented
Declaration
Swift
public func stopMonitoring()