Package org.robovm.compiler.target.ios
Class DeviceType
java.lang.Object
org.robovm.compiler.target.ios.DeviceType
- All Implemented Interfaces:
Comparable<DeviceType>
public class DeviceType extends Object implements Comparable<DeviceType>
Simulator device types, consisting of the device type id and SDK version as
listed by xcrun simctl devices -j list.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceType.DeviceFamilystatic classDeviceType.Versionsimulator version -
Field Summary
Fields Modifier and Type Field Description static DeviceType.VersionARM64_IOS_VERSIONstatic CpuArchDEFAULT_HOST_ARCHstatic StringIOS_VERSION_PREFIXstatic String[]ONLY_32BIT_DEVICESstatic DeviceType.VersionONLY_64BIT_IOS_VERSIONstatic StringPREFERRED_IPAD_SIM_NAMEstatic StringPREFERRED_IPHONE_SIM_NAME -
Method Summary
Modifier and Type Method Description intcompareTo(DeviceType that)Set<Arch>getArchs()static DeviceTypegetBestDeviceType()static DeviceTypegetBestDeviceType(Arch arch, DeviceType.DeviceFamily family, String deviceName, String deviceVersion)Returns the bestDeviceTypematching the parameters.static DeviceTypegetBestDeviceType(DeviceType.DeviceFamily family)StringgetDeviceName()static DeviceTypegetDeviceType(String displayName)DeviceType.DeviceFamilygetFamily()DeviceTypegetPair()StringgetSimpleDeviceName()StringgetSimpleDeviceTypeId()static List<String>getSimpleDeviceTypeIds()StringgetState()StringgetUdid()DeviceType.VersiongetVersion()static List<DeviceType>listDeviceTypes()DeviceTyperefresh()StringtoString()
-
Field Details
-
IOS_VERSION_PREFIX
- See Also:
- Constant Field Values
-
PREFERRED_IPHONE_SIM_NAME
- See Also:
- Constant Field Values
-
PREFERRED_IPAD_SIM_NAME
- See Also:
- Constant Field Values
-
ONLY_32BIT_DEVICES
-
ONLY_64BIT_IOS_VERSION
-
ARM64_IOS_VERSION
-
DEFAULT_HOST_ARCH
-
-
Method Details
-
getDeviceName
-
getVersion
-
getArchs
-
getPair
-
getSimpleDeviceTypeId
- Returns:
- id as understood by the AppCompiler -simdevicetype flag
-
getSimpleDeviceName
-
getFamily
-
getUdid
-
getState
-
refresh
- Returns:
- fresh copy -- to receive fresh device state (and paired state)
-
listDeviceTypes
-
compareTo
- Specified by:
compareToin interfaceComparable<DeviceType>
-
getSimpleDeviceTypeIds
-
getDeviceType
-
getBestDeviceType
-
getBestDeviceType
-
getBestDeviceType
public static DeviceType getBestDeviceType(Arch arch, DeviceType.DeviceFamily family, String deviceName, String deviceVersion)Returns the bestDeviceTypematching the parameters. If multiple device types match the parameters the first one with the highest SDK number will be returned. If no device name and noDeviceType.DeviceFamilyis specified this method will default toDeviceType.DeviceFamily.iPhone. -
toString
-