According to this answer we need to know the version of ios. How can I achieve it using libgdx's robovm backend?
Detect version of ios using libgdx with robovm backend
When running under RoboVM java.lang.System.getProperty("os.version")
will return the iOS version.
Easier to use, if you are in iOS module:
import org.robovm.apple.foundation.Foundation;
Foundation.getMajorSystemVersion()
// and
Foundation.getMinorSystemVersion()
import org.robovm.apple.foundation.FoundationVersionNumber;
if (FoundationVersionNumber.getVersion() < FoundationVersionNumber.Version_iOS_8_0)
© 2022 - 2024 — McMap. All rights reserved.