isNotUpToDate
Determine if the operating system hardware is up to date.
🔑 Minimum required license level: Advanced.
Sample usage
try {
val systemDiagnostic = rasp.diagnostic.system
val isNotUpToDate = systemDiagnostic.isNotUpToDate()
Log.d("RASP-DEMO", "isNotUpToDate: $isNotUpToDate")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[systemDiagnostic] isNotUpToDate error: ${e.message}")
}
Content copied to clipboard
To observe changes of this function. You can use the observe() method.
val systemNetwork = rasp.watcher.system.observe()
launch {
systemModel.isNotUpToDate.collect { detected ->
if (detected != null && detected) {
Log.d("RASP-DEMO", "[isNotUpToDate] $detected")
}
}
Content copied to clipboard
Return
Boolean
— true if the latest version of operating system hardware is currently detected.
Since
v1.3.1