Detect version of ios using libgdx with robovm backend
Asked Answered
S

3

6

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

Scorekeeper answered 7/11, 2013 at 7:30 Comment(0)
S
10

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

Spittle answered 7/11, 2013 at 9:16 Comment(0)
S
2

Easier to use, if you are in iOS module:

import org.robovm.apple.foundation.Foundation;

Foundation.getMajorSystemVersion()
// and
Foundation.getMinorSystemVersion()
Sexpartite answered 21/9, 2015 at 15:21 Comment(0)
A
0
import org.robovm.apple.foundation.FoundationVersionNumber;

if (FoundationVersionNumber.getVersion() < FoundationVersionNumber.Version_iOS_8_0)
Aunt answered 26/5, 2016 at 13:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.