Module: Toybox.Application.Properties

Overview

The Properties module provides access to application properties.

Storage provides access to properties defined in application properties.

Since:

API Level 2.4.0

Classes Under Namespace

Classes: InvalidKeyException

Instance Method Summary collapse

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.

Parameters:

  • key(Lang.Object)

    The key of the value to retrieve from Application Properties

Returns:

See Also:

Since:

API Level 2.4.0

Throws:

setValue(key as Application.PropertyKeyType, value as Application.PropertyValueType) as Void

Store the given Application Property.

Note:

Background processes cannot save Application Properties

Parameters:

  • key(Lang.Object)

    The key used to store and retrieve the value from Application Properties

  • value(Lang.Object)

    The value to put into Application Properties

Since:

API Level 2.4.0

Throws:


Generated Apr 17, 2024 9:40:36 AM