WatchInfo

object WatchInfo

This class keeps information about the characteristics of the currently connected watch. Based on that, the application can display different information.

Types

Link copied to clipboard
data class ModelInfo(var model: WatchInfo.WATCH_MODEL, var worldCitiesCount: Int, var dstCount: Int, var alarmCount: Int, var hasAutoLight: Boolean, var hasReminders: Boolean, var shortLightDuration: String, val longLightDuration: String, val weekLanguageSupported: Boolean = true, val worldCities: Boolean = true, val hasBatteryLevel: Boolean = true, val hasTemperature: Boolean = true, val batteryLevelLowerLimit: Int = 15, val batteryLevelUpperLimit: Int = 20, val alwaysConnected: Boolean = false, val findButtonUserDefined: Boolean = false, val hasPowerSavingMode: Boolean = true, val hasDnD: Boolean = false)

Info about the model.

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun reset()
Link copied to clipboard
fun setAddress(address: String)
Link copied to clipboard

When we obtain the name of the watch from the BLE connection, we need to call this method. From here, we can determine and set all the model's characteristics.