[homekit] Add iOS 10 beta 2 missing bindings (#481)

- Made an API available for tvOS.
- Annotated ios.pending with things already bound.
This commit is contained in:
Vincent Dondain 2016-07-25 21:03:11 +02:00 коммит произвёл Sebastien Pouliot
Родитель 88d83532ef
Коммит edbc04b720
4 изменённых файлов: 30 добавлений и 2 удалений

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

@ -47,6 +47,8 @@ namespace XamCore.HomeKit {
// iOS 10.0
if (s == HMAccessoryCategoryTypesInternal.IPCamera)
return HMAccessoryCategoryType.IPCamera;
if (s == HMAccessoryCategoryTypesInternal.VideoDoorbell)
return HMAccessoryCategoryType.VideoDoorbell;
return HMAccessoryCategoryType.Other;
}
}

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

@ -552,6 +552,8 @@ namespace XamCore.HomeKit {
RangeExtender,
[iOS (10,0), Watch (3,0), TV (10,0)]
IPCamera,
[iOS (10,0), Watch (3,0), TV (10,0)]
VideoDoorbell,
}
[iOS (9,0)]

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

@ -982,7 +982,6 @@ namespace XamCore.HomeKit {
[Export ("manageUsersWithCompletionHandler:")]
void ManageUsers (Action<NSError> completion);
[NoTV]
[iOS (9,0)]
[Export ("homeAccessControlForUser:")]
HMHomeAccessControl GetHomeAccessControl (HMUser user);
@ -1553,6 +1552,10 @@ namespace XamCore.HomeKit {
[Field ("HMAccessoryCategoryTypeThermostat")]
NSString Thermostat { get; }
[iOS (10,0), Watch (3,0), TV (10,0)]
[Field ("HMAccessoryCategoryTypeVideoDoorbell")]
NSString VideoDoorbell { get; }
[Field ("HMAccessoryCategoryTypeWindow")]
NSString Window { get; }
@ -1600,7 +1603,6 @@ namespace XamCore.HomeKit {
[NoTV]
[NoWatch]
[Export ("initWithName:events:predicate:")]
[DesignatedInitializer]
IntPtr Constructor (string name, HMEvent[] events, [NullAllowed] NSPredicate predicate);
[Export ("events", ArgumentSemantic.Copy)]

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

@ -30,6 +30,28 @@
!unknown-type! GKQuadTreeNode bound
# HomeKit
# This was added and deprecated at the same time recommending the use of UpdateAudioStreamSetting.
# We decided not to bind it, as it could be that Apple is just keeping it around because it's needed
# somewhere else.
!missing-selector! HMCameraStream::setAudioStreamSetting: not bound
# Messages
# No enum to attach the domain with.
!missing-field! MSStickersErrorDomain not bound
# MessageUI
# [Native] available on XAMCORE_4_0
!missing-enum-native! MFMailComposeErrorCode
!missing-enum-native! MFMailComposeResult
!missing-enum-native! MessageComposeResult
# Speech
## iOS 10 beta 1 - use a non-public type in the signature https://trello.com/c/s6s6YKua
!missing-selector! SFSpeechRecognizer::prepareWithRequest: not bound