[CoreSpotlight] Add Xcode13 beta1 support. (#11986)
This commit is contained in:
Родитель
7b934c811c
Коммит
1f84aaa9b4
|
@ -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")]
|
||||
|
@ -1031,6 +1044,10 @@ namespace CoreSpotlight {
|
|||
[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
|
||||
|
||||
[iOS (11, 0), NoTV]
|
||||
|
@ -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
|
Загрузка…
Ссылка в новой задаче