getVersion
()
|
Gets the version number of the Horizon OS SDK currently available on the device.
This can be used to adjust behavior based on SDK version, enabling client code to simultaneously achieve compatibility with specific SDK version(s).
Signature
static int horizonos.os.Build.HorizonOsSdk.getVersion() Returns int |
getDisplayName
()
|
Gets the non-localizable string representing the user visible version name of the Horizon Operating System, e.g.
"1.2.3", "4.5.6.hotfix7", or "bananas". NEVER attempt to parse this value or use it in any conditional logic such as string comparison. This string is an opaque value intended for the sole purpose of displaying to users the "version name" assigned to this version of Horizon OS. The value of this string should be considered arbitrary. Do not assume that its value has any particular structure, or that values assigned to different releases can be somehow ordered. To query the version number of the Horizon OS SDK currently available on the device, use Build.HorizonOsSdk.getVersion().
Signature
static String horizonos.os.Build.Version.getDisplayName() Returns String |