public class WatchSettings extends Object
Modifier and Type | Class and Description |
---|---|
class |
WatchSettings.EnumValue
Represents an enum value.
|
class |
WatchSettings.ManifestEntry
Represents a setting (entry in the Manifest file of the watch)
|
static class |
WatchSettings.SettingType
Represents the type of the setting
|
class |
WatchSettings.WatchSetting |
Constructor and Description |
---|
WatchSettings(byte[] settingsData,
long firmwareVersion)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
convertSettingsToData() |
String |
getSettingDescriptions()
Returns the list of settings as name-value pairs.
|
long |
getSettingsValueInt(String settingName)
Get setting value by name, assuming an integer type of setting
|
void |
setSettingsValueInt(String settingName,
long value)
This method modifies the value with given settings name
|
public WatchSettings(byte[] settingsData, long firmwareVersion)
settingsData
- Byte array representing the manifest file datafirmwareVersion
- Software version 0x0000hhhhmmmmllll,
hhhh-major, mmmm-mid, llll-minor versionpublic byte[] convertSettingsToData()
public String getSettingDescriptions()
public long getSettingsValueInt(String settingName)
settingName
- Name of the settingpublic void setSettingsValueInt(String settingName, long value)
settingName
- Name of the setting to modifyvalue
- New value of the settingCopyright © 2019. All rights reserved.