isNotUpToDate

suspend fun isNotUpToDate(): Boolean

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}")
}


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")
}
}

Return

Boolean — true if the latest version of operating system hardware is currently detected.

Since

v1.3.1