[Foundation] Bind a few missing notifications. Fixes #19837. (#19846)

Fixes https://github.com/xamarin/xamarin-macios/issues/19837.
This commit is contained in:
Rolf Bjarne Kvinge 2024-01-18 14:10:27 +01:00 коммит произвёл GitHub
Родитель 267a26d9fb
Коммит d00a190766
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
8 изменённых файлов: 32 добавлений и 32 удалений

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

@ -4299,6 +4299,10 @@ namespace Foundation {
[MacCatalyst (14, 0)]
[Export ("srAbsoluteTime")]
double SrAbsoluteTime { get; }
[Field ("NSSystemClockDidChangeNotification")]
[Notification]
NSString SystemClockDidChangeNotification { get; }
}
[BaseType (typeof (NSObject))]
@ -5747,6 +5751,10 @@ namespace Foundation {
[Export ("localizedName:locale:")]
string GetLocalizedName (NSTimeZoneNameStyle style, [NullAllowed] NSLocale locale);
[Notification]
[Field ("NSSystemTimeZoneDidChangeNotification")]
NSString SystemTimeZoneDidChangeNotification { get; }
}
interface NSUbiquitousKeyValueStoreChangeEventArgs {
@ -6196,7 +6204,6 @@ namespace Foundation {
NSString RegistrationDomain { get; }
[NoMac]
[NoTV]
[MacCatalyst (13, 1)]
[Notification]
[Field ("NSUserDefaultsSizeLimitExceededNotification")]
@ -6209,14 +6216,12 @@ namespace Foundation {
NSString NoCloudAccountNotification { get; }
[NoMac]
[NoTV]
[MacCatalyst (13, 1)]
[Notification]
[Field ("NSUbiquitousUserDefaultsDidChangeAccountsNotification")]
NSString DidChangeAccountsNotification { get; }
[NoMac]
[NoTV]
[MacCatalyst (13, 1)]
[Notification]
[Field ("NSUbiquitousUserDefaultsCompletedInitialSyncNotification")]
@ -10943,6 +10948,10 @@ namespace Foundation {
[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
[Export ("localizedAttributedStringForKey:value:table:")]
NSAttributedString GetLocalizedAttributedString (string key, [NullAllowed] string value, [NullAllowed] string tableName);
[Notification]
[Field ("NSBundleDidLoadNotification")]
NSString BundleDidLoadNotification { get; }
}
[NoMac]
@ -12833,6 +12842,13 @@ namespace Foundation {
[Export ("qualityOfService")]
NSQualityOfService QualityOfService { get; set; }
[Notification]
[Field ("NSThreadWillExitNotification")]
NSString ThreadWillExitNotification { get; }
[Notification]
[Field ("NSWillBecomeMultiThreadedNotification")]
NSString WillBecomeMultiThreadedNotification { get; }
}
[BaseType (typeof (NSObject))]
@ -12873,6 +12889,10 @@ namespace Foundation {
[Export ("sendBeforeDate:msgid:components:from:reserved:")]
bool SendBeforeDate (NSDate limitDate, nuint msgID, [NullAllowed] NSMutableArray components, [NullAllowed] NSPort receivePort, nuint headerSpaceReserved);
#pragma warning restore 618
[Notification]
[Field ("NSPortDidBecomeInvalidNotification")]
NSString PortDidBecomeInvalidNotification { get; }
}
interface INSPortDelegate { }
@ -15679,6 +15699,9 @@ namespace Foundation {
[Export ("resumeWithSuspensionID:")]
void ResumeWithSuspensionID (NSAppleEventManagerSuspensionID suspensionID);
[Notification]
[Field ("NSAppleEventManagerWillProcessFirstEventNotification")]
NSString WillProcessFirstEventNotification { get; }
}
[NoiOS, NoTV, NoWatch]

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

@ -16,7 +16,6 @@
!missing-enum! NSXMLDTDNodeKind not bound
!missing-enum! NSXMLNodeKind not bound
!missing-enum! NSXMLNodeOptions not bound
!missing-field! NSAppleEventManagerWillProcessFirstEventNotification not bound
!missing-field! NSAppleEventTimeOutDefault not bound
!missing-field! NSAppleEventTimeOutNone not bound
!missing-field! NSClassDescriptionNeededForClassNotification not bound

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

@ -173,6 +173,9 @@
# this is a better named version of `date` which we already bound as `Now` in C#
!missing-selector! +NSDate::now not bound
# Apple says this is not implemented
!missing-field! NSDidBecomeSingleThreadedNotification not bound
## unsorted
!extra-designated-initializer! NSSortDescriptor::initWithCoder: is incorrectly decorated with an [DesignatedInitializer] attribute
@ -183,7 +186,6 @@
!missing-enum! NSSearchPathDomainMask not bound
!missing-enum! NSStringEncodingConversionOptions not bound
!missing-field! NSAverageKeyValueOperator not bound
!missing-field! NSBundleDidLoadNotification not bound
!missing-field! NSCalendarIdentifierIslamic not bound
!missing-field! NSCharacterConversionException not bound
!missing-field! NSCountKeyValueOperator not bound
@ -192,7 +194,6 @@
!missing-field! NSDecimalNumberOverflowException not bound
!missing-field! NSDecimalNumberUnderflowException not bound
!missing-field! NSDestinationInvalidException not bound
!missing-field! NSDidBecomeSingleThreadedNotification not bound
!missing-field! NSDistinctUnionOfArraysKeyValueOperator not bound
!missing-field! NSDistinctUnionOfObjectsKeyValueOperator not bound
!missing-field! NSDistinctUnionOfSetsKeyValueOperator not bound
@ -215,15 +216,11 @@
!missing-field! NSObjectNotAvailableException not bound
!missing-field! NSOldStyleException not bound
!missing-field! NSParseErrorException not bound
!missing-field! NSPortDidBecomeInvalidNotification not bound
!missing-field! NSPortReceiveException not bound
!missing-field! NSPortSendException not bound
!missing-field! NSPortTimeoutException not bound
!missing-field! NSRangeException not bound
!missing-field! NSSumKeyValueOperator not bound
!missing-field! NSSystemClockDidChangeNotification not bound
!missing-field! NSSystemTimeZoneDidChangeNotification not bound
!missing-field! NSThreadWillExitNotification not bound
!missing-field! NSUndefinedKeyException not bound
!missing-field! NSUnionOfArraysKeyValueOperator not bound
!missing-field! NSUnionOfObjectsKeyValueOperator not bound
@ -235,7 +232,6 @@
!missing-field! NSURLErrorFailingURLStringErrorKey not bound
!missing-field! NSURLErrorNetworkUnavailableReasonKey not bound
!missing-field! NSURLFileScheme not bound
!missing-field! NSWillBecomeMultiThreadedNotification not bound
!missing-field! NSXMLParserErrorDomain not bound
!missing-pinvoke! NSAllocateMemoryPages is not bound
!missing-pinvoke! NSAllocateObject is not bound

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

@ -24,7 +24,6 @@
!missing-enum! NSXMLDTDNodeKind not bound
!missing-enum! NSXMLNodeKind not bound
!missing-enum! NSXMLNodeOptions not bound
!missing-field! NSAppleEventManagerWillProcessFirstEventNotification not bound
!missing-field! NSAppleEventTimeOutDefault not bound
!missing-field! NSAppleEventTimeOutNone not bound
!missing-field! NSAppleScriptErrorAppName not bound

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

@ -1,9 +1,3 @@
## shown as available in iOS 9.3 in tvOS header files (from Xcode 7.3) so normally available in tvOS 9.2
## In reality it's only available in the simulator, not on AppleTV devices (all fields are null)
!missing-field! NSUbiquitousUserDefaultsCompletedInitialSyncNotification not bound
!missing-field! NSUbiquitousUserDefaultsDidChangeAccountsNotification not bound
!missing-field! NSUserDefaultsSizeLimitExceededNotification not bound
## does not exists in iOS (or tvOS) as a type - but some API refers to it (messy)
!unknown-type! NSPortMessage bound

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

@ -183,6 +183,9 @@
# this is a better named version of `date` which we already bound as `Now` in C#
!missing-selector! +NSDate::now not bound
# Apple says this is not implemented
!missing-field! NSDidBecomeSingleThreadedNotification not bound
## unsorted
!extra-designated-initializer! NSSortDescriptor::initWithCoder: is incorrectly decorated with an [DesignatedInitializer] attribute
@ -192,7 +195,6 @@
!missing-enum! NSSearchPathDomainMask not bound
!missing-enum! NSStringEncodingConversionOptions not bound
!missing-field! NSAverageKeyValueOperator not bound
!missing-field! NSBundleDidLoadNotification not bound
!missing-field! NSCalendarIdentifierIslamic not bound
!missing-field! NSCharacterConversionException not bound
!missing-field! NSCountKeyValueOperator not bound
@ -201,7 +203,6 @@
!missing-field! NSDecimalNumberOverflowException not bound
!missing-field! NSDecimalNumberUnderflowException not bound
!missing-field! NSDestinationInvalidException not bound
!missing-field! NSDidBecomeSingleThreadedNotification not bound
!missing-field! NSDistinctUnionOfArraysKeyValueOperator not bound
!missing-field! NSDistinctUnionOfObjectsKeyValueOperator not bound
!missing-field! NSDistinctUnionOfSetsKeyValueOperator not bound
@ -224,15 +225,11 @@
!missing-field! NSObjectNotAvailableException not bound
!missing-field! NSOldStyleException not bound
!missing-field! NSParseErrorException not bound
!missing-field! NSPortDidBecomeInvalidNotification not bound
!missing-field! NSPortReceiveException not bound
!missing-field! NSPortSendException not bound
!missing-field! NSPortTimeoutException not bound
!missing-field! NSRangeException not bound
!missing-field! NSSumKeyValueOperator not bound
!missing-field! NSSystemClockDidChangeNotification not bound
!missing-field! NSSystemTimeZoneDidChangeNotification not bound
!missing-field! NSThreadWillExitNotification not bound
!missing-field! NSUndefinedKeyException not bound
!missing-field! NSUnionOfArraysKeyValueOperator not bound
!missing-field! NSUnionOfObjectsKeyValueOperator not bound
@ -244,7 +241,6 @@
!missing-field! NSURLErrorFailingURLStringErrorKey not bound
!missing-field! NSURLErrorNetworkUnavailableReasonKey not bound
!missing-field! NSURLFileScheme not bound
!missing-field! NSWillBecomeMultiThreadedNotification not bound
!missing-field! NSXMLParserErrorDomain not bound
!missing-pinvoke! NSAllocateMemoryPages is not bound
!missing-pinvoke! NSAllocateObject is not bound

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

@ -28,7 +28,6 @@
!missing-enum! NSXMLDTDNodeKind not bound
!missing-enum! NSXMLNodeKind not bound
!missing-enum! NSXMLNodeOptions not bound
!missing-field! NSAppleEventManagerWillProcessFirstEventNotification not bound
!missing-field! NSAppleEventTimeOutDefault not bound
!missing-field! NSAppleEventTimeOutNone not bound
!missing-field! NSAppleScriptErrorAppName not bound

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

@ -1,9 +1,3 @@
## shown as available in iOS 9.3 in tvOS header files (from Xcode 7.3) so normally available in tvOS 9.2
## In reality it's only available in the simulator, not on AppleTV devices (all fields are null)
!missing-field! NSUbiquitousUserDefaultsCompletedInitialSyncNotification not bound
!missing-field! NSUbiquitousUserDefaultsDidChangeAccountsNotification not bound
!missing-field! NSUserDefaultsSizeLimitExceededNotification not bound
## does not exists in iOS (or tvOS) as a type - but some API refers to it (messy)
!unknown-type! NSPortMessage bound