[Intents] Fix watchOS INCarSeatResolutionResult breaking changes (#2690)
* [Intents] Fix watchOS INCarSeatResolutionResult breaking changes Type Changed: Intents.INCarSeatResolutionResult Removed methods: public static INCarSeatResolutionResult GetConfirmationRequired (INCarSeat valueToConfirm); public static INCarSeatResolutionResult GetSuccess (INCarSeat resolvedValue);
This commit is contained in:
Родитель
05dde4c9ec
Коммит
274a34c93f
|
@ -7,17 +7,20 @@
|
|||
// Copyright 2017 Xamarin Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#if XAMCORE_2_0 && IOS
|
||||
#if XAMCORE_2_0 && !MONOMAC
|
||||
using System;
|
||||
using XamCore.Foundation;
|
||||
using XamCore.ObjCRuntime;
|
||||
using XamCore.UIKit;
|
||||
|
||||
namespace XamCore.Intents {
|
||||
public partial class INCarSeatResolutionResult {
|
||||
public static INCarSeatResolutionResult GetSuccess (INCarSeat resolvedValue)
|
||||
{
|
||||
if (UIDevice.CurrentDevice.CheckSystemVersion (11, 0))
|
||||
#if IOS
|
||||
if (XamCore.UIKit.UIDevice.CurrentDevice.CheckSystemVersion (11, 0))
|
||||
#elif WATCH
|
||||
if (XamCore.WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion (4, 0))
|
||||
#endif
|
||||
return SuccessWithResolvedCarSeat (resolvedValue);
|
||||
else
|
||||
return SuccessWithResolvedValue (resolvedValue);
|
||||
|
@ -25,7 +28,11 @@ namespace XamCore.Intents {
|
|||
|
||||
public static INCarSeatResolutionResult GetConfirmationRequired (INCarSeat valueToConfirm)
|
||||
{
|
||||
if (UIDevice.CurrentDevice.CheckSystemVersion (11, 0))
|
||||
#if IOS
|
||||
if (XamCore.UIKit.UIDevice.CurrentDevice.CheckSystemVersion (11, 0))
|
||||
#elif WATCH
|
||||
if (XamCore.WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion (4, 0))
|
||||
#endif
|
||||
return ConfirmationRequiredWithCarSeatToConfirm (valueToConfirm);
|
||||
else
|
||||
return ConfirmationRequiredWithValueToConfirm (valueToConfirm);
|
||||
|
|
|
@ -74,6 +74,15 @@
|
|||
!unknown-native-enum! GKPeerPickerConnectionType bound
|
||||
|
||||
|
||||
#Intents
|
||||
|
||||
## The following were deprecated in ios(10.0, 10.0)
|
||||
!missing-selector! INRideDriver::initWithHandle:displayName:image:rating:phoneNumber: not bound
|
||||
!missing-selector! INRideDriver::initWithHandle:nameComponents:image:rating:phoneNumber: not bound
|
||||
!missing-selector! INRideOption::identifier not bound
|
||||
!missing-selector! INRideOption::setIdentifier: not bound
|
||||
|
||||
|
||||
# IntentsUI
|
||||
|
||||
## not exposed by our API (better use the OS version)
|
||||
|
|
Загрузка…
Ссылка в новой задаче