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));
            }
        }
Пример #3
0
        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
        }
Пример #4
0
        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
        }
Пример #5
0
 public INSetDefrosterSettingsInCarIntent(bool?enable, INCarDefroster defroster) :
     this(enable.HasValue ? new NSNumber(enable.Value) : null, defroster)
 {
 }