[UIKit] Remove unnecessary conditional defines from uikit.cs (#14539)

Co-authored-by: tj_devel709 <antlambe@microsoft.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
This commit is contained in:
TJ Lambert 2022-03-31 12:00:48 -05:00 коммит произвёл GitHub
Родитель d4e665ea7c
Коммит d8081bb228
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 7 добавлений и 6 удалений

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

@ -18,6 +18,8 @@ using UIKit;
using CloudKit; using CloudKit;
#if !TVOS #if !TVOS
using Contacts; using Contacts;
#else
using CNContact = System.Object;
#endif #endif
#if !WATCH #if !WATCH
using MediaPlayer; using MediaPlayer;
@ -2647,11 +2649,11 @@ namespace UIKit {
[Export ("iconWithSystemImageName:")] [Export ("iconWithSystemImageName:")]
UIApplicationShortcutIcon FromSystemImageName (string systemImageName); UIApplicationShortcutIcon FromSystemImageName (string systemImageName);
#if IOS // This is inside ContactsUI.framework // This is inside ContactsUI.framework
[NoMac][NoTV][NoWatch]
[NoMacCatalyst] [NoMacCatalyst]
[Static, Export ("iconWithContact:")] [Static, Export ("iconWithContact:")]
UIApplicationShortcutIcon FromContact (CNContact contact); UIApplicationShortcutIcon FromContact (CNContact contact);
#endif // IOS
} }
[NoTV] [NoTV]
@ -10314,11 +10316,11 @@ namespace UIKit {
[Export ("setItems:options:")] [Export ("setItems:options:")]
void SetItems (NSDictionary<NSString, NSObject>[] items, NSDictionary options); void SetItems (NSDictionary<NSString, NSObject>[] items, NSDictionary options);
#if !TVOS [NoTV]
[iOS (10,0)] [iOS (10,0)]
[Wrap ("SetItems (items, pasteboardOptions.GetDictionary ()!)")] [Wrap ("SetItems (items, pasteboardOptions.GetDictionary ()!)")]
void SetItems (NSDictionary<NSString, NSObject> [] items, UIPasteboardOptions pasteboardOptions); void SetItems (NSDictionary<NSString, NSObject> [] items, UIPasteboardOptions pasteboardOptions);
#endif
[NoWatch, NoTV, iOS (10, 0)] [NoWatch, NoTV, iOS (10, 0)]
[Export ("hasStrings")] [Export ("hasStrings")]
bool HasStrings { get; } bool HasStrings { get; }
@ -10383,14 +10385,13 @@ namespace UIKit {
NSString Find { get; } NSString Find { get; }
} }
#if !TVOS
[NoWatch, NoTV, iOS (10, 0)] [NoWatch, NoTV, iOS (10, 0)]
[StrongDictionary ("UIPasteboardOptionKeys")] [StrongDictionary ("UIPasteboardOptionKeys")]
interface UIPasteboardOptions { interface UIPasteboardOptions {
NSDate ExpirationDate { get; set; } NSDate ExpirationDate { get; set; }
bool LocalOnly { get; set; } bool LocalOnly { get; set; }
} }
#endif
[NoWatch, NoTV, iOS (10,0)] [NoWatch, NoTV, iOS (10,0)]
[Static] [Static]
interface UIPasteboardOptionKeys { interface UIPasteboardOptionKeys {