Module: Toybox.Application.WatchFaceConfig
Overview
The WatchFaceConfig module facilitates access to persisted watchface configurations. Watchface could have more than one configuration settings, and each setting is represented by a unique identifier.
Classes Under Namespace
Classes: Color, ComplicationRef, Id, Settings
Instance Method Summary collapse
-
getIds() as Lang.Array<WatchFaceConfig.Id> or Null
Returns ids of all saved watchface config settings.
-
getSettings(configId as WatchFaceConfig.Id or Null) as WatchFaceConfig.Settings or Null
Returns the watchface config settings for the given unique identifier.
-
setSettings(configId as WatchFaceConfig.Id or Null, settings as WatchFaceConfig.Settings) as Void
Set or update watchface config settings with the given unique identifier,
configId
.
Instance Method Details
getIds() as Lang.Array<WatchFaceConfig.Id> or Null
Returns ids of all saved watchface config settings.
getSettings(configId as WatchFaceConfig.Id or Null) as WatchFaceConfig.Settings or Null
Returns the watchface config settings for the given unique identifier.
setSettings(configId as WatchFaceConfig.Id or Null, settings as WatchFaceConfig.Settings) as Void
Set or update watchface config settings with the given unique identifier, configId
.