getVersion

abstract fun getVersion(): Int?

Returns device version service.

Return

Int.MAX_VALUE if the service is found on the device, but it does not have a version - in this case, the compatibility of called methods not guaranteed. If the service is not installed on the device, returns null. In all other cases, returns Int - the value of the service version.