All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.badlogic.gdx.backends.iosrobovm.IOSDevice Maven / Gradle / Ivy

There is a newer version: 1.13.0
Show newest version
package com.badlogic.gdx.backends.iosrobovm;

public enum IOSDevice {
	
	IPHONE_2G("iPhone1,1", 163),
	IPHONE_3G("iPhone1,2", 163),
	IPHONE_3GS("iPhone2,1", 163),
	IPHONE_4("iPhone3,1", 326),
	IPHONE_4V("iPhone3,2", 326),
	IPHONE_4_CDMA("iPhone3,3", 326),
	IPHONE_4S("iPhone4,1", 326),
	IPHONE_5("iPhone5,1", 326),
	IPHONE_5_CDMA_GSM("iPhone5,2", 326),
	IPHONE_5C("iPhone5,3", 326),
	IPHONE_5C_CDMA_GSM("iPhone5,4", 326),
	IPHONE_5S("iPhone6,1", 326),
	IPHONE_5S_CDMA_GSM("iPhone6,2", 326),
	IPHONE_6_PLUS("iPhone7,1", 401),
	IPHONE_6("iPhone7,2", 326),
	IPHONE_6S("iPhone8,1", 326),
	IPHONE_6S_PLUS("iPhone8,2", 401),
	
	IPOD_TOUCH_1G("iPod1,1", 163),
	IPOD_TOUCH_2G("iPod2,1", 163),
	IPOD_TOUCH_3G("iPod3,1", 163),
	IPOD_TOUCH_4G("iPod4,1", 326),
	IPOD_TOUCH_5G("iPod5,1", 326),
	IPOD_TOUCH_6G("iPod7,1", 326),
	
	IPAD("iPad1,1", 132),
	IPAD_3G("iPad1,2", 132),
	IPAD_2_WIFI("iPad2,1", 132),
	IPAD_2("iPad2,2", 132),
	IPAD_2_CDMA("iPad2,3", 132),
	IPAD_2V("iPad2,4", 132),
	IPAD_MINI_WIFI("iPad2,5", 164),
	IPAD_MINI("iPad2,6", 164),
	IPAD_MINI_WIFI_CDMA("iPad2,7", 164),
	IPAD_3_WIFI("iPad3,1", 264),
	IPAD_3_WIFI_CDMA("iPad3,2", 264),
	IPAD_3("iPad3,3", 264),
	IPAD_4_WIFI("iPad3,4", 264),
	IPAD_4("iPad3,5", 264),
	IPAD_4_GSM_CDMA("iPad3,6", 264),
	IPAD_AIR_WIFI("iPad4,1", 264),
	IPAD_AIR_WIFI_GSM("iPad4,2", 264),
	IPAD_AIR_WIFI_CDMA("iPad4,3", 264),
	IPAD_MINI_RETINA_WIFI("iPad4,4", 326),
	IPAD_MINI_RETINA_WIFI_CDMA("iPad4,5", 326),
	IPAD_MINI_RETINA_WIFI_CELLULAR_CN("iPad4,6", 326),
	IPAD_MINI_3_WIFI("iPad4,7", 326),
	IPAD_MINI_3_WIFI_CELLULAR("iPad4,8", 326),
	IPAD_MINI_3_WIFI_CELLULAR_CN("iPad4,9", 326),
	IPAD_MINI_4_WIFI("iPad5,1", 326),
	IPAD_MINI_4_WIFI_CELLULAR("iPad5,2", 326),
	IPAD_MINI_AIR_2_WIFI("iPad5,3", 264),
	IPAD_MINI_AIR_2_WIFI_CELLULAR("iPad5,4", 264),
	IPAD_PRO_WIFI("iPad6,7", 264),
	IPAD_PRO("iPad6,8", 264),
	
	SIMULATOR_32("i386", 264),
	SIMULATOR_64("x86_64", 264);
	
	final String machineString;
	final int ppi;
	
	IOSDevice(String machineString, int ppi) {
		this.machineString = machineString;
		this.ppi = ppi;
	}
	
	public static IOSDevice getDevice (String machineString) {
		for (IOSDevice device : values()) {
			if (device.machineString.equalsIgnoreCase(machineString)) return device;
		}
		return null;
	}

	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy