@Override public int getVersion () { return Integer.parseInt(UIDevice.getCurrentDevice().getSystemVersion().split("\\.")[0]); }
int getIosVersion () { String systemVersion = UIDevice.getCurrentDevice().getSystemVersion(); int version = Integer.parseInt(systemVersion.split("\\.")[0]); return version; }
int getIosVersion () { String systemVersion = UIDevice.getCurrentDevice().getSystemVersion(); int version = Integer.parseInt(systemVersion.split("\\.")[0]); return version; }
@Override public int getVersion () { return Integer.parseInt(UIDevice.getCurrentDevice().getSystemVersion().split("\\.")[0]); }
/** * Retrieve and store the device system version. */ @WeaklyLinked private static void fetchSystemVersion() { String version = UIDevice.getCurrentDevice().getSystemVersion(); systemVersionString = version; if (version != null) { String[] parts = version.split("\\."); if (parts.length > 0) majorSystemVersion = Integer.valueOf(parts[0]); if (parts.length > 1) minorSystemVersion = Integer.valueOf(parts[1]); if (parts.length > 2) patchSystemVersion = Integer.valueOf(parts[2]); } else { // Default to minimum OS version that RoboVM supports. majorSystemVersion = 6; } }
Gdx.app.debug("IOSApplication", "iOS version: " + UIDevice.getCurrentDevice().getSystemVersion());
Gdx.app.debug("IOSApplication", "iOS version: " + UIDevice.getCurrentDevice().getSystemVersion());
private int getOSVersion () { String systemVersion = UIDevice.getCurrentDevice().getSystemVersion(); int version = Integer.parseInt(systemVersion.split("\\.")[0]); return version; } }
int getIosVersion () { String systemVersion = UIDevice.getCurrentDevice().getSystemVersion(); int version = Integer.parseInt(systemVersion.split("\\.")[0]); return version; }
private int getOSVersion () { String systemVersion = UIDevice.getCurrentDevice().getSystemVersion(); int version = Integer.parseInt(systemVersion.split("\\.")[0]); return version; } }
@Override public int getVersion () { return Integer.parseInt(UIDevice.getCurrentDevice().getSystemVersion().split("\\.")[0]); }
/** * Retrieve and store the device system version. */ @WeaklyLinked private static void fetchSystemVersion() { String version = UIDevice.getCurrentDevice().getSystemVersion(); systemVersionString = version; if (version != null) { String[] parts = version.split("\\."); if (parts.length > 0) majorSystemVersion = Integer.valueOf(parts[0]); if (parts.length > 1) minorSystemVersion = Integer.valueOf(parts[1]); if (parts.length > 2) patchSystemVersion = Integer.valueOf(parts[2]); } else { // Default to minimum OS version that RoboVM supports. majorSystemVersion = 6; } }
/** * Retrieve and store the device system version. */ @WeaklyLinked private static void fetchSystemVersion() { String version = UIDevice.getCurrentDevice().getSystemVersion(); systemVersionString = version; if (version != null) { String[] parts = version.split("\\."); if (parts.length > 0) majorSystemVersion = Integer.valueOf(parts[0]); if (parts.length > 1) minorSystemVersion = Integer.valueOf(parts[1]); if (parts.length > 2) patchSystemVersion = Integer.valueOf(parts[2]); } else { // Default to minimum OS version that RoboVM supports. majorSystemVersion = 6; } }
Gdx.app.debug("IOSApplication", "iOS version: " + UIDevice.getCurrentDevice().getSystemVersion());