[homekit] Update for iOS 10 beta 2 (#368)

This commit is contained in:
Vincent Dondain 2016-07-09 03:35:06 +02:00 коммит произвёл Sebastien Pouliot
Родитель 6ea6fe471f
Коммит 491fdebca1
4 изменённых файлов: 29 добавлений и 2 удалений

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

@ -157,6 +157,8 @@ namespace XamCore.HomeKit {
// iOS 10.0
if (s == HMCharacteristicTypeInternal.StreamingStatus)
return HMCharacteristicType.StreamingStatus;
if (s == HMCharacteristicTypeInternal.SetupStreamEndpoint)
return HMCharacteristicType.SetupStreamEndpoint;
if (s == HMCharacteristicTypeInternal.SupportedVideoStreamConfiguration)
return HMCharacteristicType.SupportedVideoStreamConfiguration;
if (s == HMCharacteristicTypeInternal.SupportedAudioStreamConfiguration)

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

@ -94,6 +94,10 @@ namespace XamCore.HomeKit {
NotAuthorizedForLocationServices = 85,
// iOS 9.3
ReferToUserManual = 86,
// iOS 10.0
InvalidOrMissingAuthorizationData = 87,
BridgedAccessoryNotReachable = 88,
NotAuthorizedForMicrophoneAccess = 89,
}
@ -211,6 +215,8 @@ namespace XamCore.HomeKit {
[iOS (10,0), Watch (3,0), TV (10,0)]
StreamingStatus,
[iOS (10,0), Watch (3,0), TV (10,0)]
SetupStreamEndpoint,
[iOS (10,0), Watch (3,0), TV (10,0)]
SupportedVideoStreamConfiguration,
[iOS (10,0), Watch (3,0), TV (10,0)]
SupportedAudioStreamConfiguration,
@ -310,6 +316,8 @@ namespace XamCore.HomeKit {
Microphone,
[iOS (10,0), Watch (3,0), TV (10,0)]
Speaker,
[iOS (10,0), Watch (3,0), TV (10,0)]
Doorbell,
}
// conveniance enum (ObjC uses NSString)

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

@ -46,6 +46,8 @@ namespace XamCore.HomeKit {
return HMServiceType.ContactSensor;
if (s == HMServiceTypeInternal.Door)
return HMServiceType.Door;
if (s == HMServiceTypeInternal.Doorbell)
return HMServiceType.Doorbell;
if (s == HMServiceTypeInternal.HumiditySensor)
return HMServiceType.HumiditySensor;
if (s == HMServiceTypeInternal.LeakSensor)

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

@ -635,6 +635,10 @@ namespace XamCore.HomeKit {
[Field ("HMCharacteristicTypeStreamingStatus")]
NSString StreamingStatus { get; }
[Watch (3,0), TV (10,0), iOS (10,0)]
[Field ("HMCharacteristicTypeSetupStreamEndpoint")]
NSString SetupStreamEndpoint { get; }
[Watch (3,0), TV (10,0), iOS (10,0)]
[Field ("HMCharacteristicTypeSupportedVideoStreamConfiguration")]
NSString SupportedVideoStreamConfiguration { get; }
@ -1151,6 +1155,10 @@ namespace XamCore.HomeKit {
[Field ("HMServiceTypeDoor")]
NSString Door { get; }
[Watch (3,0), TV (10,0), iOS (10,0)]
[Field ("HMServiceTypeDoorbell")]
NSString Doorbell { get; }
[iOS (9,0)]
[Field ("HMServiceTypeHumiditySensor")]
NSString HumiditySensor { get; }
@ -1753,15 +1761,22 @@ namespace XamCore.HomeKit {
void DidStartStream (HMCameraStreamControl cameraStreamControl);
[Export ("cameraStreamControl:didStopStreamWithError:")]
void DidStopStream (HMCameraStreamControl cameraStreamControl, NSError error);
void DidStopStream (HMCameraStreamControl cameraStreamControl, [NullAllowed] NSError error);
}
// TODO: Type still available for tvOS even if everything in it is __TVOS_PROHIBITED.
[Watch (3,0), TV (10,0), iOS (10,0)]
[BaseType (typeof(HMCameraSource))]
public interface HMCameraStream
{
[NoTV]
[Export ("audioStreamSetting", ArgumentSemantic.Assign)]
HMCameraAudioStreamSetting AudioStreamSetting { get; set; }
HMCameraAudioStreamSetting AudioStreamSetting { get; }
[NoTV]
[Async]
[Export ("updateAudioStreamSetting:completionHandler:")]
void UpdateAudioStreamSetting (HMCameraAudioStreamSetting audioStreamSetting, Action<NSError> completion);
}
[Watch (3,0), TV (10,0), iOS (10,0)]