public class WatchSettings extends Object
Modifier and Type | Class and Description |
---|---|
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()
Convert settings array to the byte data (from 0x0085000n file)
|
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
|
boolean |
isChanged()
Indicates whether the settings as loaded have been changed since loading
|
void |
setSettingsValueInt(String settingName,
long value)
This method modifies the value with given settings name
|
String |
settingsManifestToManifestCsv()
Create a settings definition CSV string representing the manifest
|
String |
settingsManifestToSettingsCsv()
Create a settings definition CSV string representing the manifest
|
public WatchSettings(byte[] settingsData, long firmwareVersion)
settingsData
- Byte array representing the manifest file datafirmwareVersion
- Software version 0x0000hhhhmmmmllll,
hhhh-major, mmmm-mid, llll-minor versionpublic boolean isChanged()
public 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 settingpublic String settingsManifestToSettingsCsv()
public String settingsManifestToManifestCsv()
Copyright © 2023. All rights reserved.