RiValT_Watch_AppDelegate
@MainActor
final class RiValT_Watch_AppDelegate : NSObject, WKApplicationDelegate
Activate connectivity even for background deliveries, without requiring the timer screen to appear.
-
The app-wide timer connection available to foreground views and background tasks.
Declaration
Swift
@MainActor static let connection: RiValT_WatchDelegate -
Connectivity tasks awaiting session activation or completion of deliveries.
Declaration
Swift
@MainActor private var pendingTasks: Set<WKWatchConnectivityRefreshBackgroundTask> -
The observation that notices changes to the session’s pending content.
Declaration
Swift
@MainActor private var contentObservation: NSKeyValueObservation? -
Installs completion callbacks on the timer connection and WatchConnectivity session.
Declaration
Swift
@MainActor override init() -
Keeps connectivity refresh tasks pending while completing other background tasks immediately.
Declaration
Swift
@MainActor func handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>) -
Completes retained refresh tasks after the session and complication writes settle.
Declaration
Swift
@MainActor private func completeConnectivityTasks()
View on GitHub
Install in Dash