[foundation] xtro fixes for watchOS (#2586)
!missing-enum! NSProcessInfoThermalState not bound !missing-field! NSProcessInfoThermalStateDidChangeNotification not bound !missing-selector! NSProcessInfo::thermalState not bound Headers are wrong and preferredPresentationStyle is not in tvOS and watchOS !missing-selector! NSItemProvider::preferredPresentationStyle not bound !missing-selector! NSItemProvider::setPreferredPresentationStyle: not bound * [uikit] Also remove UIPreferredPresentationStyle enum from platform where it's not used
This commit is contained in:
Родитель
8bb621cd93
Коммит
8c57522e2e
|
@ -1113,12 +1113,14 @@ namespace XamCore.Foundation {
|
|||
}
|
||||
}
|
||||
|
||||
#if MONOMAC
|
||||
[Mac (10,10,3)]
|
||||
[Watch (4,0)]
|
||||
[TV (11,0)]
|
||||
[iOS (11,0)]
|
||||
[Native]
|
||||
public enum NSProcessInfoThermalState : nint {
|
||||
Nominal, Fair, Serious, Critical
|
||||
}
|
||||
#endif
|
||||
|
||||
[Native]
|
||||
#if XAMCORE_2_0
|
||||
|
|
|
@ -2281,7 +2281,8 @@ namespace XamCore.UIKit {
|
|||
LayoutMargins,
|
||||
}
|
||||
|
||||
[iOS (11,0), TV (11,0), Watch (4,0)]
|
||||
[NoWatch][NoTV]
|
||||
[iOS (11,0)]
|
||||
[Native]
|
||||
public enum UIPreferredPresentationStyle : nint
|
||||
{
|
||||
|
|
|
@ -4923,6 +4923,7 @@ namespace XamCore.Foundation
|
|||
[Since (5,0)]
|
||||
[BaseType (typeof (NSObject))]
|
||||
#if WATCH
|
||||
[Advice ("Not available on watchOS")]
|
||||
[DisableDefaultCtor] // "NSUbiquitousKeyValueStore is unavailable" is printed to the log.
|
||||
#endif
|
||||
interface NSUbiquitousKeyValueStore {
|
||||
|
@ -11400,16 +11401,20 @@ namespace XamCore.Foundation
|
|||
NSString PowerStateDidChangeNotification { get; }
|
||||
#endif
|
||||
|
||||
#if MONOMAC
|
||||
[Mac (10,10,3)]
|
||||
[Watch (4,0)]
|
||||
[TV (11, 0)]
|
||||
[iOS (11,0)]
|
||||
[Export ("thermalState")]
|
||||
NSProcessInfoThermalState ThermalState { get; }
|
||||
|
||||
[Mac (10,10,3)]
|
||||
[Field ("NSProcessInfoThermalStateDidChangeNotification")]
|
||||
[Watch (4,0)]
|
||||
[TV (11, 0)]
|
||||
[iOS (11,0)]
|
||||
[Notification]
|
||||
NSString ThermalStateDidChangeNotification { get; }
|
||||
#endif
|
||||
}
|
||||
|
||||
[NoWatch][NoTV][NoiOS]
|
||||
|
|
|
@ -376,6 +376,12 @@
|
|||
!missing-selector! UITableViewHeaderFooterView::setTintColor: not bound
|
||||
!missing-selector! UITableViewHeaderFooterView::tintColor not bound
|
||||
|
||||
## lack of availabilty macros on NSItemProvder.PreferredPresentationStyle - intro says they are not available
|
||||
!missing-selector! NSItemProvider::preferredPresentationStyle not bound
|
||||
!missing-selector! NSItemProvider::setPreferredPresentationStyle: not bound
|
||||
## and that also means the (enum/returned) type is unused
|
||||
!missing-enum! UIPreferredPresentationStyle not bound
|
||||
|
||||
|
||||
# OpenTK
|
||||
|
||||
|
|
|
@ -158,6 +158,12 @@ AVAudioPlayerDelegate::audioPlayerEndInterruption:withOptions:
|
|||
!missing-selector! UIImageDeprecated::stretchableImageWithLeftCapWidth:topCapHeight: not bound
|
||||
!missing-selector! UIImageDeprecated::topCapHeight not bound
|
||||
|
||||
## lack of availabilty macros on NSItemProvder.PreferredPresentationStyle - intro says they are not available
|
||||
!missing-selector! NSItemProvider::preferredPresentationStyle not bound
|
||||
!missing-selector! NSItemProvider::setPreferredPresentationStyle: not bound
|
||||
## and that also means the (enum/returned) type is unused
|
||||
!missing-enum! UIPreferredPresentationStyle not bound
|
||||
|
||||
|
||||
# WatchConnectivity
|
||||
|
||||
|
|
|
@ -69,6 +69,12 @@
|
|||
!missing-protocol-conformance! CMSensorDataList should conform to NSFastEnumeration
|
||||
|
||||
|
||||
# Foundation
|
||||
|
||||
## type was not marked as unavailable before Xcode9
|
||||
!unknown-type! NSUbiquitousKeyValueStore bound
|
||||
|
||||
|
||||
# HealthKit
|
||||
|
||||
## deprecated API (removed in same version it was added)
|
||||
|
|
Загрузка…
Ссылка в новой задаче