checkForUpdate

Deprecated

No longer supported

Replace with

sync

Synchronous function to check for an update for an app.

Example usage (kotlin):

val checkScope = CoroutineScope(Dispatchers.IO)
checkScope.launch {
val response = LiveUpdateManager.checkForUpdate(context, "appId")
println(response.body.toString())
}

Example usage (Java):

Executor executor = Executors.newSingleThreadExecutor();
executor.execute(() -> {
CheckResponse response = LiveUpdateManager.checkForUpdate(getContext(), "appId");
// Do something with response
});

Return

the CheckResponse result

Parameters

context

an Android Context used during the update check

appId

the ID of the registered app to check


fun checkForUpdate(context: Context, appId: String, callback: CheckCallback)

Deprecated

No longer supported

Replace with

sync

Asynchronous function to check for an update for an app.

Example usage (kotlin):

LiveUpdateManager.checkForUpdate(context, "appId", object : CheckCallback {
override fun onComplete(result: CheckResponse?) {
// Do something with the result
}
})

Example usage (Java):

LiveUpdateManager.checkForUpdate(context, "appId", checkResponse -> {
// Do something with response
});

Parameters

context

an Android Context used during the update check

appId

the ID of the registered app to check

callback

a CheckCallback to handle the response from the update check request