checkForUpdate

suspend fun checkForUpdate(onUpdateNeeded: (latestVersion: String, changelog: String) -> Unit)

Checks for an update. If an update is available, executes onUpdateNeeded with the new version and changelog.