osInfo property
Get the OS version number
Returns
- The OS version number if the OS is Android
- -1 otherwise
Throws
- An exception if it fails.
Implementation
static int get osInfo {
final OperationResult resultString = staticMethod('Platform', 'getOSInfo');
return resultString['result'];
}