public static INWorkoutLocationTypeResolutionResult GetConfirmationRequired(INWorkoutLocationType valueToConfirm) { #if IOS if (XamCore.UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) #elif WATCH if (XamCore.WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0)) #endif { return(ConfirmationRequiredWithWorkoutLocationTypeToConfirm(valueToConfirm)); } else { return(ConfirmationRequiredWithValueToConfirm(valueToConfirm)); } }
public static INWorkoutLocationTypeResolutionResult GetConfirmationRequired(INWorkoutLocationType valueToConfirm) { #if IOS if (SystemVersion.CheckiOS(11, 0)) #elif WATCH if (SystemVersion.CheckwatchOS(4, 0)) #endif { return(ConfirmationRequiredWithWorkoutLocationTypeToConfirm(valueToConfirm)); } else { return(ConfirmationRequiredWithValueToConfirm(valueToConfirm)); } }
public static INWorkoutLocationTypeResolutionResult GetSuccess(INWorkoutLocationType resolvedValue) { #if IOS if (XamCore.UIKit.UIDevice.CurrentDevice.CheckSystemVersion(11, 0)) #elif WATCH if (XamCore.WatchKit.WKInterfaceDevice.CurrentDevice.CheckSystemVersion(4, 0)) #endif { return(SuccessWithResolvedWorkoutLocationType(resolvedValue)); } else { return(SuccessWithResolvedValue(resolvedValue)); } }
public static INWorkoutLocationTypeResolutionResult GetSuccess(INWorkoutLocationType resolvedValue) { #if IOS if (SystemVersion.CheckiOS(11, 0)) #elif WATCH if (SystemVersion.CheckwatchOS(4, 0)) #endif { return(SuccessWithResolvedWorkoutLocationType(resolvedValue)); } else { return(SuccessWithResolvedValue(resolvedValue)); } }
public INStartWorkoutIntent(INSpeakableString workoutName, NSNumber goalValue, INWorkoutGoalUnitType workoutGoalUnitType, INWorkoutLocationType workoutLocationType, bool?isOpenEnded) : this(workoutName, goalValue, workoutGoalUnitType, workoutLocationType, isOpenEnded.HasValue ? new NSNumber(isOpenEnded.Value) : null) { }