[CoreSpotlight] Add Xcode13 beta1 support. (#11986)

This commit is contained in:
Manuel de la Pena 2021-06-23 11:45:40 -04:00 коммит произвёл GitHub
Родитель 7b934c811c
Коммит 1f84aaa9b4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 36 добавлений и 22 удалений

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

@ -985,6 +985,19 @@ namespace CoreSpotlight {
[NullAllowed, Export ("supportsNavigation", ArgumentSemantic.Strong)]
NSNumber SupportsNavigation { get; set; }
[NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)]
[Field ("CSActionIdentifier")]
NSString ActionIdentifier { get; }
[NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)]
[Export ("actionIdentifiers", ArgumentSemantic.Copy)]
string[] ActionIdentifiers { get; set; }
[NullAllowed]
[NoTV, NoMac, iOS (15,0), MacCatalyst (15,0)]
[Export ("sharedItemContentType", ArgumentSemantic.Copy)]
UTType SharedItemContentType { get; set; }
// CSContainment
[NullAllowed, Export ("containerTitle")]
@ -1030,6 +1043,10 @@ namespace CoreSpotlight {
[iOS (11, 0), NoTV]
[NullAllowed, Export ("rankingHint", ArgumentSemantic.Strong)]
NSNumber RankingHint { get; set; }
[NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[NullAllowed, Export ("darkThumbnailURL", ArgumentSemantic.Strong)]
NSUrl DarkThumbnailUrl { get; set; }
// CSSearchableItemAttributeSet_CSItemProvider
@ -1075,5 +1092,15 @@ namespace CoreSpotlight {
[Export ("cancel")]
void Cancel ();
}
[Abstract]
[NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
[BaseType (typeof (NSObject))]
interface CSImportExtension : NSExtensionRequestHandling
{
[Export ("updateAttributes:forFileAtURL:error:")]
bool Update (CSSearchableItemAttributeSet attributes, NSUrl contentUrl, [NullAllowed] out NSError error);
}
}

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

@ -199,6 +199,15 @@ namespace Introspection {
return Runtime.Arch == Arch.SIMULATOR;
}
break;
case "CSImportExtension":
switch (selectorName) {
case "beginRequestWithExtensionContext:":
case "updateAttributes:forFileAtURL:error:":
if (Runtime.Arch == Arch.SIMULATOR) // not available in the sim
return true;
break;
}
break;
#endif
case "WKPreferences":
switch (selectorName) {

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

@ -1,9 +0,0 @@
!missing-field! CSActionIdentifier not bound
!missing-selector! CSImportExtension::updateAttributes:forFileAtURL:error: not bound
!missing-selector! CSSearchableItemAttributeSet::actionIdentifiers not bound
!missing-selector! CSSearchableItemAttributeSet::darkThumbnailURL not bound
!missing-selector! CSSearchableItemAttributeSet::setActionIdentifiers: not bound
!missing-selector! CSSearchableItemAttributeSet::setDarkThumbnailURL: not bound
!missing-selector! CSSearchableItemAttributeSet::setSharedItemContentType: not bound
!missing-selector! CSSearchableItemAttributeSet::sharedItemContentType not bound
!missing-type! CSImportExtension not bound

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

@ -1,9 +0,0 @@
!missing-field! CSActionIdentifier not bound
!missing-selector! CSImportExtension::updateAttributes:forFileAtURL:error: not bound
!missing-selector! CSSearchableItemAttributeSet::actionIdentifiers not bound
!missing-selector! CSSearchableItemAttributeSet::darkThumbnailURL not bound
!missing-selector! CSSearchableItemAttributeSet::setActionIdentifiers: not bound
!missing-selector! CSSearchableItemAttributeSet::setDarkThumbnailURL: not bound
!missing-selector! CSSearchableItemAttributeSet::setSharedItemContentType: not bound
!missing-selector! CSSearchableItemAttributeSet::sharedItemContentType not bound
!missing-type! CSImportExtension not bound

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

@ -1,4 +0,0 @@
!missing-selector! CSImportExtension::updateAttributes:forFileAtURL:error: not bound
!missing-selector! CSSearchableItemAttributeSet::darkThumbnailURL not bound
!missing-selector! CSSearchableItemAttributeSet::setDarkThumbnailURL: not bound
!missing-type! CSImportExtension not bound