Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 15 commits into from Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/UIKit/UIVibrancyEffect.cs
Expand Up @@ -25,16 +25,24 @@ static public UIVibrancyEffect CreateForNotificationCenter ()
}

[iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.CreateWidgetEffectForNotificationCenter' instead.")]
static public UIVibrancyEffect CreatePrimaryVibrancyEffectForNotificationCenter ()
{
return (null as UIVibrancyEffect).GetWidgetPrimaryVibrancyEffect ();
}

[iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.CreateWidgetEffectForNotificationCenter' instead.")]
static public UIVibrancyEffect CreateSecondaryVibrancyEffectForNotificationCenter ()
{
return (null as UIVibrancyEffect).GetWidgetSecondaryVibrancyEffect ();
}

[iOS (13,0)]
static public UIVibrancyEffect CreateWidgetEffectForNotificationCenter (UIVibrancyEffectStyle vibrancyStyle)
{
return (null as UIVibrancyEffect).GetWidgetEffect (vibrancyStyle);
}
#endif // IOS
joconte marked this conversation as resolved.
Show resolved Hide resolved
}
}
Expand Down
9 changes: 8 additions & 1 deletion src/notificationcenter.cs
Expand Up @@ -73,7 +73,7 @@ interface UIVibrancyEffect_NotificationCenter {
#else
[EditorBrowsable (EditorBrowsableState.Advanced)] // this is not the one we want to be seen (compat only)
#endif
[Deprecated (PlatformName.iOS, 10,0)]
[Deprecated (PlatformName.iOS, 10,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")]
[Static, Export ("notificationCenterVibrancyEffect")]
UIVibrancyEffect NotificationCenterVibrancyEffect ();
}
Expand Down Expand Up @@ -103,14 +103,21 @@ interface NSExtensionContext_NCWidgetAdditions {
[BaseType (typeof (UIVibrancyEffect))]
interface UIVibrancyEffect_NCWidgetAdditions {
[iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")]
[Static]
[Export ("widgetPrimaryVibrancyEffect")]
UIVibrancyEffect GetWidgetPrimaryVibrancyEffect ();

[iOS (10,0)]
[Deprecated (PlatformName.iOS, 13,0, message: "Use 'UIVibrancyEffect.GetWidgetEffect' instead.")]
[Static]
[Export ("widgetSecondaryVibrancyEffect")]
UIVibrancyEffect GetWidgetSecondaryVibrancyEffect ();

[iOS (13,0)]
[Static]
[Export ("widgetEffectForVibrancyStyle:")]
UIVibrancyEffect GetWidgetEffect (UIVibrancyEffectStyle vibrancyStyle);
joconte marked this conversation as resolved.
Show resolved Hide resolved
joconte marked this conversation as resolved.
Show resolved Hide resolved
}
#endif

Expand Down
1 change: 0 additions & 1 deletion tests/xtro-sharpie/iOS-NotificationCenter.todo

This file was deleted.