[NotificationCenter] Bindings for iOS Xcode 11 beta 1 (#6579)

This commit is contained in:
Jonathan CONTE 2019-07-16 21:58:34 +02:00 коммит произвёл Sebastien Pouliot
Родитель c1e6ac029f
Коммит 9b7f6f9cdb
4 изменённых файлов: 17 добавлений и 2 удалений

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

@ -25,16 +25,24 @@ namespace UIKit {
} }
[iOS (10,0)] [iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.CreateWidgetEffectForNotificationCenter' instead.")]
static public UIVibrancyEffect CreatePrimaryVibrancyEffectForNotificationCenter () static public UIVibrancyEffect CreatePrimaryVibrancyEffectForNotificationCenter ()
{ {
return (null as UIVibrancyEffect).GetWidgetPrimaryVibrancyEffect (); return (null as UIVibrancyEffect).GetWidgetPrimaryVibrancyEffect ();
} }
[iOS (10,0)] [iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.CreateWidgetEffectForNotificationCenter' instead.")]
static public UIVibrancyEffect CreateSecondaryVibrancyEffectForNotificationCenter () static public UIVibrancyEffect CreateSecondaryVibrancyEffectForNotificationCenter ()
{ {
return (null as UIVibrancyEffect).GetWidgetSecondaryVibrancyEffect (); return (null as UIVibrancyEffect).GetWidgetSecondaryVibrancyEffect ();
} }
[iOS (13,0)]
static public UIVibrancyEffect CreateWidgetEffectForNotificationCenter (UIVibrancyEffectStyle vibrancyStyle)
{
return (null as UIVibrancyEffect).GetWidgetEffect (vibrancyStyle);
}
#endif // IOS #endif // IOS
} }
} }

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

@ -73,7 +73,7 @@ namespace NotificationCenter {
#else #else
[EditorBrowsable (EditorBrowsableState.Advanced)] // this is not the one we want to be seen (compat only) [EditorBrowsable (EditorBrowsableState.Advanced)] // this is not the one we want to be seen (compat only)
#endif #endif
[Deprecated (PlatformName.iOS, 10,0)] [Deprecated (PlatformName.iOS, 10,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")]
[Static, Export ("notificationCenterVibrancyEffect")] [Static, Export ("notificationCenterVibrancyEffect")]
UIVibrancyEffect NotificationCenterVibrancyEffect (); UIVibrancyEffect NotificationCenterVibrancyEffect ();
} }
@ -103,14 +103,21 @@ namespace NotificationCenter {
[BaseType (typeof (UIVibrancyEffect))] [BaseType (typeof (UIVibrancyEffect))]
interface UIVibrancyEffect_NCWidgetAdditions { interface UIVibrancyEffect_NCWidgetAdditions {
[iOS (10,0)] [iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")]
[Static] [Static]
[Export ("widgetPrimaryVibrancyEffect")] [Export ("widgetPrimaryVibrancyEffect")]
UIVibrancyEffect GetWidgetPrimaryVibrancyEffect (); UIVibrancyEffect GetWidgetPrimaryVibrancyEffect ();
[iOS (10,0)] [iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")]
[Static] [Static]
[Export ("widgetSecondaryVibrancyEffect")] [Export ("widgetSecondaryVibrancyEffect")]
UIVibrancyEffect GetWidgetSecondaryVibrancyEffect (); UIVibrancyEffect GetWidgetSecondaryVibrancyEffect ();
[iOS (13,0)]
[Static]
[Export ("widgetEffectForVibrancyStyle:")]
UIVibrancyEffect GetWidgetEffect (UIVibrancyEffectStyle vibrancyStyle);
} }
#endif #endif

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

@ -2,3 +2,4 @@
!missing-selector! +UIVibrancyEffect::notificationCenterVibrancyEffect not bound !missing-selector! +UIVibrancyEffect::notificationCenterVibrancyEffect not bound
!missing-selector! +UIVibrancyEffect::widgetPrimaryVibrancyEffect not bound !missing-selector! +UIVibrancyEffect::widgetPrimaryVibrancyEffect not bound
!missing-selector! +UIVibrancyEffect::widgetSecondaryVibrancyEffect not bound !missing-selector! +UIVibrancyEffect::widgetSecondaryVibrancyEffect not bound
!missing-selector! +UIVibrancyEffect::widgetEffectForVibrancyStyle: not bound

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

@ -1 +0,0 @@
!missing-selector! +UIVibrancyEffect::widgetEffectForVibrancyStyle: not bound