public static INCarDefrosterResolutionResult GetConfirmationRequired(INCarDefroster valueToConfirm) { #if IOS if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) #elif WATCH if (WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0)) #endif { return(ConfirmationRequiredWithCarDefrosterToConfirm(valueToConfirm)); } else { return(ConfirmationRequiredWithValueToConfirm(valueToConfirm)); } }
public static INCarDefrosterResolutionResult GetSuccess(INCarDefroster resolvedValue) { #if IOS if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) #elif WATCH if (WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0)) #endif { return(SuccessWithResolvedCarDefroster(resolvedValue)); } else { return(SuccessWithResolvedValue(resolvedValue)); } }
public static INCarDefrosterResolutionResult GetConfirmationRequired(INCarDefroster valueToConfirm) { #if __WATCHOS__ throw new PlatformNotSupportedException("This class is not supported on watchOS"); #elif __IOS__ if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) { return(ConfirmationRequiredWithCarDefrosterToConfirm(valueToConfirm)); } else { return(ConfirmationRequiredWithValueToConfirm(valueToConfirm)); } #endif }
public static INCarDefrosterResolutionResult GetSuccess(INCarDefroster resolvedValue) { #if __WATCHOS__ throw new PlatformNotSupportedException("This class is not supported on watchOS"); #elif __IOS__ if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) { return(SuccessWithResolvedCarDefroster(resolvedValue)); } else { return(SuccessWithResolvedValue(resolvedValue)); } #endif }
public INSetDefrosterSettingsInCarIntent(bool?enable, INCarDefroster defroster) : this(enable.HasValue ? new NSNumber(enable.Value) : null, defroster) { }