MonoMobile.Views.UIDeviceExtensions.GetKeyboardHeight C# (CSharp) Method

GetKeyboardHeight() public static method

public static GetKeyboardHeight ( this device ) : float
device this
return float
		public static float GetKeyboardHeight(this UIDevice device)
		{
			var orientation = device.Orientation;

			var landscape = orientation == UIDeviceOrientation.LandscapeLeft || orientation == UIDeviceOrientation.LandscapeRight;

			if (device.IsPad())
			{
				if (landscape)
					return 352;
				
				return 264;
			}
			
			if (landscape)
				return 140;
			
			return 216;
		}