[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:
Родитель
d4e665ea7c
Коммит
d8081bb228
13
src/uikit.cs
13
src/uikit.cs
|
@ -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 {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче