public class Firmware extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
forceUpdateFirmware(WatchInterface watchInterface,
TomTomWatchView view)
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
|
boolean |
updateFirmware(WatchInterface watchInterface,
int productId,
long currentFirmware,
TomTomWatchView view)
Check the latest firmware and update the firmware if it is newer than the
version in the watch
|
public static Firmware getInstance()
public boolean updateFirmware(WatchInterface watchInterface, int productId, long currentFirmware, TomTomWatchView view)
watchInterface
- The WatchInterface to useproductId
- Product ID of the watchcurrentFirmware
- Current firmware int the watchview
- Application view to use for UI feedbackpublic 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, TomTomWatchView view)
watchInterface
- The WatchInterface to useview
- Application view to use for UI feedbackCopyright © 2019. All rights reserved.