[eventkit] Obsolete `EKReminder` default constructor (#6768)

`[EKReminder init]` is not usable and now return `nil`.

Before Xcode 11 it was never really usable but an instance was returned.

references:
* https://feedbackassistant.apple.com/feedback/6453725
* https://github.com/xamarin/maccore/issues/1832
This commit is contained in:
Sebastien Pouliot 2019-08-14 13:10:20 -04:00 коммит произвёл GitHub
Родитель d4192a59f0
Коммит 3893981ac0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 9 добавлений и 3 удалений

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

@ -79,6 +79,14 @@ namespace EventKit {
#if !XAMCORE_4_0
[Obsolete ("Use the static methods FromDate or FromTimeInterval to create alarms")]
public EKAlarm () {}
#endif
}
partial class EKReminder {
#if !XAMCORE_4_0
// https://github.com/xamarin/maccore/issues/1832
[Obsolete ("Use 'Create' instead.")]
public EKReminder () {}
#endif
}
}

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

@ -645,6 +645,7 @@ namespace EventKit {
[iOS (6,0)]
[BaseType (typeof (EKCalendarItem))]
[DisableDefaultCtor]
interface EKReminder {
[Export ("startDateComponents", ArgumentSemantic.Copy)]
[NullAllowed]

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

@ -235,9 +235,6 @@ namespace Introspection {
return Runtime.Arch == Arch.SIMULATOR;
case "ICNotificationManagerConfiguration": // This works on device but not on simulator, and docs explicitly says it is user creatable
return Runtime.Arch == Arch.SIMULATOR;
// xcode 11 beta 3
case "EKReminder": // https://github.com/xamarin/maccore/issues/1832
return TestRuntime.CheckXcodeVersion (11, 0);
default:
return base.Skip (type);
}