[UserNotifications] Update to Xcode 9 beta 1

This commit is contained in:
Miguel de Icaza 2017-06-19 23:16:46 -04:00
Родитель b4131f9e42
Коммит 1784b44cb6
1 изменённых файлов: 26 добавлений и 1 удалений

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

@ -56,7 +56,9 @@ namespace XamCore.UserNotifications {
public enum UNNotificationCategoryOptions : nuint {
None = 0,
CustomDismissAction = (1 << 0),
AllowInCarPlay = (2 << 0)
AllowInCarPlay = (2 << 0),
HiddenPreviewsShowTitle = (1 << 2),
HiddenPreviewsShowSubtitle = (1 << 3),
}
[Introduced (PlatformName.iOS, 10, 0)]
@ -114,6 +116,15 @@ namespace XamCore.UserNotifications {
Alert = (1 << 2)
}
[NoWatch, NoTV, iOS (11,0)]
[Native]
public enum UNShowPreviewsSetting : nint
{
Always,
WhenAuthenticated,
Never
}
[Introduced (PlatformName.iOS, 10, 0)]
[Introduced (PlatformName.TvOS, 10, 0)]
[Introduced (PlatformName.WatchOS, 3, 0)]
@ -257,9 +268,19 @@ namespace XamCore.UserNotifications {
[Export ("options")]
UNNotificationCategoryOptions Options { get; }
[NoWatch, iOS (11, 0)]
[Export ("hiddenPreviewsBodyPlaceholder")]
string HiddenPreviewsBodyPlaceholder { get; }
[Static]
[Export ("categoryWithIdentifier:actions:intentIdentifiers:options:")]
UNNotificationCategory FromIdentifier (string identifier, UNNotificationAction [] actions, string [] intentIdentifiers, UNNotificationCategoryOptions options);
[NoWatch, iOS (11,0)]
[Static]
[Export ("categoryWithIdentifier:actions:intentIdentifiers:hiddenPreviewsBodyPlaceholder:options:")]
UNNotificationCategory FromIdentifier (string identifier, UNNotificationAction[] actions, string[] intentIdentifiers, string hiddenPreviewsBodyPlaceholder, UNNotificationCategoryOptions options);
}
[Introduced (PlatformName.iOS, 10, 0)]
@ -478,6 +499,10 @@ namespace XamCore.UserNotifications {
[Unavailable (PlatformName.WatchOS)]
[Export ("alertStyle")]
UNAlertStyle AlertStyle { get; }
[NoWatch, NoTV, iOS (11, 0)]
[Export ("showPreviewsSetting")]
UNShowPreviewsSetting ShowPreviewsSetting { get; }
}
[Introduced (PlatformName.iOS, 10, 0)]