[WatchKit] Add support for Xcode 14 beta 1,2 & 3 (#15535)

This commit is contained in:
Manuel de la Pena 2022-07-19 11:18:41 -04:00 коммит произвёл GitHub
Родитель cc6ba02a14
Коммит 6d47b64ce5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 130 добавлений и 20 удалений

Просмотреть файл

@ -1791,4 +1791,133 @@ namespace WatchKit {
[Export ("setSecureTextEntry:")]
void SetSecureTextEntry (bool secureTextEntry);
}
[Watch (7,0), NoiOS]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface WKApplication
{
[Static]
[Export ("sharedApplication")]
WKApplication SharedApplication { get; }
[Export ("openSystemURL:")]
void OpenSystemUrl (NSUrl url);
[Wrap ("WeakDelegate")]
[NullAllowed]
IWKApplicationDelegate Delegate { get; }
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
NSObject WeakDelegate { get; }
[NullAllowed, Export ("rootInterfaceController")]
WKInterfaceController RootInterfaceController { get; }
[NullAllowed, Export ("visibleInterfaceController")]
WKInterfaceController VisibleInterfaceController { get; }
[Export ("applicationState")]
WKApplicationState ApplicationState { get; }
[Export ("isApplicationRunningInDock")]
bool IsApplicationRunningInDock { get; }
[Export ("autorotating")]
bool IsAutorotating { [Bind ("isAutorotating")] get; set; }
[Export ("autorotated")]
bool Autorotated { [Bind ("isAutorotated")] get; }
[Export ("registerForRemoteNotifications")]
void RegisterForRemoteNotifications ();
[Export ("unregisterForRemoteNotifications")]
void UnregisterForRemoteNotifications ();
[Export ("registeredForRemoteNotifications")]
bool RegisteredForRemoteNotifications { [Bind ("isRegisteredForRemoteNotifications")] get; }
[Export ("globalTintColor")]
UIColor GlobalTintColor { get; }
// from interface WKBackgroundTasks (WKApplication)
[Async]
[Export ("scheduleBackgroundRefreshWithPreferredDate:userInfo:scheduledCompletion:")]
void ScheduleBackgroundRefresh (NSDate preferredFireDate, [NullAllowed] NSObject userInfo, Action<NSError> scheduledCompletion);
[Async]
[Export ("scheduleSnapshotRefreshWithPreferredDate:userInfo:scheduledCompletion:")]
void ScheduleSnapshotRefresh (NSDate preferredFireDate, [NullAllowed] NSObject userInfo, Action<NSError> scheduledCompletion);
}
interface IWKApplicationDelegate {}
[Watch (7,0), NoiOS]
#if NET
[Protocol, Model]
#else
[Protocol, Model (AutoGeneratedName = true)]
#endif
[BaseType (typeof (NSObject))]
interface WKApplicationDelegate
{
[Export ("applicationDidFinishLaunching")]
void ApplicationDidFinishLaunching ();
[Export ("applicationDidBecomeActive")]
void ApplicationDidBecomeActive ();
[Export ("applicationWillResignActive")]
void ApplicationWillResignActive ();
[Export ("applicationWillEnterForeground")]
void ApplicationWillEnterForeground ();
[Export ("applicationDidEnterBackground")]
void ApplicationDidEnterBackground ();
[Export ("handleWorkoutConfiguration:")]
void HandleWorkoutConfiguration (HKWorkoutConfiguration workoutConfiguration);
[Export ("handleActiveWorkoutRecovery")]
void HandleActiveWorkoutRecovery ();
[Export ("handleExtendedRuntimeSession:")]
void HandleExtendedRuntimeSession (WKExtendedRuntimeSession extendedRuntimeSession);
[Export ("handleRemoteNowPlayingActivity")]
void HandleRemoteNowPlayingActivity ();
[Export ("handleUserActivity:")]
void HandleUserActivity ([NullAllowed] NSDictionary userInfo);
[Export ("handleActivity:")]
void HandleActivity (NSUserActivity userActivity);
[Export ("handleIntent:completionHandler:")]
void HandleIntent (INIntent intent, Action<INIntentResponse> completionHandler);
[Export ("handleBackgroundTasks:")]
void HandleBackgroundTasks (NSSet<WKRefreshBackgroundTask> backgroundTasks);
[Export ("deviceOrientationDidChange")]
void DeviceOrientationDidChange ();
[Export ("didRegisterForRemoteNotificationsWithDeviceToken:")]
void DidRegisterForRemoteNotifications (NSData deviceToken);
[Export ("didFailToRegisterForRemoteNotificationsWithError:")]
void DidFailToRegisterForRemoteNotifications (NSError error);
[Export ("didReceiveRemoteNotification:fetchCompletionHandler:")]
void DidReceiveRemoteNotification (NSDictionary userInfo, Action<WKBackgroundFetchResult> completionHandler);
[Export ("userDidAcceptCloudKitShareWithMetadata:")]
void UserDidAcceptCloudKitShare (CKShareMetadata cloudKitShareMetadata);
}
[Watch (9,0), NoiOS]
[BaseType (typeof (WKRefreshBackgroundTask))]
interface WKBluetoothAlertRefreshBackgroundTask {}
}

Просмотреть файл

@ -0,0 +1 @@
!missing-pinvoke! WKApplicationMain is not bound

Просмотреть файл

@ -1,20 +0,0 @@
!missing-pinvoke! WKApplicationMain is not bound
!missing-protocol! WKApplicationDelegate not bound
!missing-selector! +WKApplication::sharedApplication not bound
!missing-selector! WKApplication::applicationState not bound
!missing-selector! WKApplication::delegate not bound
!missing-selector! WKApplication::globalTintColor not bound
!missing-selector! WKApplication::isApplicationRunningInDock not bound
!missing-selector! WKApplication::isAutorotated not bound
!missing-selector! WKApplication::isAutorotating not bound
!missing-selector! WKApplication::isRegisteredForRemoteNotifications not bound
!missing-selector! WKApplication::openSystemURL: not bound
!missing-selector! WKApplication::registerForRemoteNotifications not bound
!missing-selector! WKApplication::rootInterfaceController not bound
!missing-selector! WKApplication::scheduleBackgroundRefreshWithPreferredDate:userInfo:scheduledCompletion: not bound
!missing-selector! WKApplication::scheduleSnapshotRefreshWithPreferredDate:userInfo:scheduledCompletion: not bound
!missing-selector! WKApplication::setAutorotating: not bound
!missing-selector! WKApplication::unregisterForRemoteNotifications not bound
!missing-selector! WKApplication::visibleInterfaceController not bound
!missing-type! WKApplication not bound
!missing-type! WKBluetoothAlertRefreshBackgroundTask not bound