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