6

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

Community
  • 1
  • 1
Mehmet Ataş
  • 10,447
  • 5
  • 46
  • 74

3 Answers3

10

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

ntherning
  • 1,160
  • 7
  • 8
2

Easier to use, if you are in iOS module:

import org.robovm.apple.foundation.Foundation;

Foundation.getMajorSystemVersion()
// and
Foundation.getMinorSystemVersion()
alex.dorokhov
  • 1,178
  • 11
  • 17
0
import org.robovm.apple.foundation.FoundationVersionNumber;

if (FoundationVersionNumber.getVersion() < FoundationVersionNumber.Version_iOS_8_0)
I.G. Pascual
  • 5,510
  • 5
  • 40
  • 56
serhii
  • 131
  • 1
  • 6