public static INRelativeReferenceResolutionResult GetConfirmationRequired(INRelativeReference valueToConfirm) { #if IOS if (XamCore.UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) #elif WATCH if (XamCore.WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0)) #endif { return(ConfirmationRequiredWithRelativeReferenceToConfirm(valueToConfirm)); } else { return(ConfirmationRequiredWithValueToConfirm(valueToConfirm)); } }
public static INRelativeReferenceResolutionResult GetSuccess(INRelativeReference resolvedValue) { #if IOS if (XamCore.UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) #elif WATCH if (XamCore.WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0)) #endif { return(SuccessWithResolvedRelativeReference(resolvedValue)); } else { return(SuccessWithResolvedValue(resolvedValue)); } }
public static INRelativeReferenceResolutionResult GetConfirmationRequired(INRelativeReference valueToConfirm) { #if __WATCHOS__ throw new PlatformNotSupportedException("This class is not supported on watchOS"); #elif __IOS__ if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) { return(ConfirmationRequiredWithRelativeReferenceToConfirm(valueToConfirm)); } else { return(ConfirmationRequiredWithValueToConfirm(valueToConfirm)); } #endif }
public static INRelativeReferenceResolutionResult GetSuccess(INRelativeReference resolvedValue) { #if __WATCHOS__ throw new PlatformNotSupportedException("This class is not supported on watchOS"); #elif __IOS__ if (UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) { return(SuccessWithResolvedRelativeReference(resolvedValue)); } else { return(SuccessWithResolvedValue(resolvedValue)); } #endif }