interface GetLatestReleaseCallback : Callback
Receive the result of MemfaultCloud.getLatestRelease.
All methods are run on the main thread. Only one method will be called.
onError |
Called when the latest release could not be determined. abstract fun onError(e: Exception): Unit |
onUpdateAvailable |
Called when an update is available for the given device. abstract fun onUpdateAvailable(otaPackage: MemfaultOtaPackage): Unit |
onUpToDate |
Called when the device is up to date. abstract fun onUpToDate(): Unit |