WatchKit watchOS 8.5 to 9.0 API Differences
WKApplication.h
Added
WKApplication
Added
+[WKApplication sharedApplication]
Added
-[WKApplication openSystemURL:]
Added
WKApplication.delegate
Added
WKApplication.rootInterfaceController
Added
WKApplication.visibleInterfaceController
Added
WKApplication.applicationState
Added
WKApplication.isApplicationRunningInDock
Added
WKApplication.autorotating
Added
WKApplication.autorotated
Added
-[WKApplication registerForRemoteNotifications]
Added
-[WKApplication unregisterForRemoteNotifications]
Added
WKApplication.registeredForRemoteNotifications
Added
WKApplication.globalTintColor
Added
WKApplicationDelegate
Added
-[WKApplicationDelegate applicationDidFinishLaunching]
Added
-[WKApplicationDelegate applicationDidBecomeActive]
Added
-[WKApplicationDelegate applicationWillResignActive]
Added
-[WKApplicationDelegate applicationWillEnterForeground]
Added
-[WKApplicationDelegate applicationDidEnterBackground]
Added
-[WKApplicationDelegate handleWorkoutConfiguration:]
Added
-[WKApplicationDelegate handleActiveWorkoutRecovery]
Added
-[WKApplicationDelegate handleExtendedRuntimeSession:]
Added
-[WKApplicationDelegate handleRemoteNowPlayingActivity]
Added
-[WKApplicationDelegate handleUserActivity:]
Added
-[WKApplicationDelegate handleActivity:]
Added
-[WKApplicationDelegate handleIntent:completionHandler:]
Added
-[WKApplicationDelegate handleBackgroundTasks:]
Added
-[WKApplicationDelegate deviceOrientationDidChange]
Added
-[WKApplicationDelegate didRegisterForRemoteNotificationsWithDeviceToken:]
Added
-[WKApplicationDelegate didFailToRegisterForRemoteNotificationsWithError:]
Added
-[WKApplicationDelegate didReceiveRemoteNotification:fetchCompletionHandler:]
Added
-[WKApplicationDelegate userDidAcceptCloudKitShareWithMetadata:]
WKApplicationMain.h
Added
WKApplicationMain()
WKBackgroundTask.h
Added
WKBluetoothAlertRefreshBackgroundTask
Added
-[WKApplication scheduleBackgroundRefreshWithPreferredDate:userInfo:scheduledCompletion:]
Added
-[WKApplication scheduleSnapshotRefreshWithPreferredDate:userInfo:scheduledCompletion:]
WKDefines.h
Removed
#def WK_CLASS_AVAILABLE_IOS
Removed
#def WK_AVAILABLE_IOS_ONLY
Removed
#def WK_AVAILABLE_WATCHOS_IOS
Removed
#def WK_DEPRECATED_WATCHOS_IOS
WKError.h
Modified
WatchKitErrorDomain
Declaration
From
NS_AVAILABLE_IOS(8_2) NSString *const WatchKitErrorDomain
To
NSString *const _Nonnull WatchKitErrorDomain