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
Instance Method Summary collapse
-
getValue(key as Application.PropertyKeyType) as Application.PropertyValueType
Get the data associated with a given key from application settings.
-
setValue(key as Application.PropertyKeyType, value as Application.PropertyValueType) as Void
Store the given Application Property.
Instance Method Details
getValue(key as Application.PropertyKeyType) as Application.PropertyValueType
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 Application.PropertyKeyType, value as Application.PropertyValueType) as Void
Store the given Application Property.
Note:
Background processes cannot save Application Properties