Module: Toybox.Application.Properties
Overview
The Properties module provides access to application properties.
Storage provides access to properties defined in application properties.
Classes Under Namespace
Classes: InvalidKeyException
Typedef Summary collapse
- ValueType as Lang.Number or Lang.Float or Lang.Long or Lang.Double or Lang.String or Lang.Boolean or Lang.Array<Properties.ValueType>
Instance Method Summary collapse
-
getValue(key as Lang.String) as Properties.ValueType
Get the data associated with a given key from application settings.
-
setValue(key as Lang.String, value as Properties.ValueType) as Void
Store the given Application Property.
Typedef Details
ValueType as Lang.Number or Lang.Float or Lang.Long or Lang.Double or Lang.String or Lang.Boolean or Lang.Array<Properties.ValueType>
Instance Method Details
getValue(key as Lang.String) as Properties.ValueType
Get the data associated with a given key from application settings.
Property values must be defined in the application settings xml. If a key that is not present in application settings is passed to getValue(), an exception will be thrown.
setValue(key as Lang.String, value as Properties.ValueType) as Void
Store the given Application Property.
Note:
Background processes cannot save Application Properties