[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:
Родитель
d4192a59f0
Коммит
3893981ac0
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче