Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect version of ios using libgdx with robovm backend

According to this answer we need to know the version of ios. How can I achieve it using libgdx's robovm backend?

like image 414
Mehmet Ataş Avatar asked Nov 07 '13 07:11

Mehmet Ataş


2 Answers

When running under RoboVM java.lang.System.getProperty("os.version") will return the iOS version.

like image 116
ntherning Avatar answered Sep 28 '22 07:09

ntherning


Easier to use, if you are in iOS module:

import org.robovm.apple.foundation.Foundation;

Foundation.getMajorSystemVersion()
// and
Foundation.getMinorSystemVersion()
like image 40
alex.dorokhov Avatar answered Sep 28 '22 08:09

alex.dorokhov