public class Firmware extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
forceUpdateFirmware(WatchInterface watchInterface)
Thist method executes a firmware update.
|
static Firmware |
getInstance()
This method returns the one and only instance of this class
|
boolean |
prepareFirmware(WatchInterface watchInterface,
int productId)
Get the firmware version and download the firmware files
|
void |
setView(TomTomWatchView view)
Defines the view to use for feedback
|
boolean |
updateFirmware(WatchInterface watchInterface,
int productId,
long currentFirmware)
Check the latest firmware and update the firmware if it is newer than the
version in the watch
|
public static Firmware getInstance()
public void setView(TomTomWatchView view)
view
- The TomTomWatch viewpublic boolean updateFirmware(WatchInterface watchInterface, int productId, long currentFirmware)
watchInterface
- The WatchInterface to useproductId
- Product ID of the watchcurrentFirmware
- Current firmware int the watchpublic boolean prepareFirmware(WatchInterface watchInterface, int productId)
watchInterface
- Watch interface to use to communicate to the watchproductId
- Product ID of the watchpublic boolean forceUpdateFirmware(WatchInterface watchInterface)
watchInterface
- The WatchInterface to useCopyright © 2023. All rights reserved.