Module: Toybox::Application::Properties

Overview

The Properties module provides access to application properties.

Storage provides access to properties defined in application properties.

Since:

  • 2.4.0

Defined Under Namespace

Classes: InvalidKeyException

Instance Method Summary collapse

Instance Method Details

getValue(key) ⇒ Toybox::Lang::Object

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:

Returns:

Raises:

See Also:

Since:

  • 2.4.0


2303
2304
# File 'Monkeybrains.rb', line 2303

def getValue(key)
end

setValue(key, value) ⇒ Object

Note:

Background processes cannot save Application Properties

Store the given Application Property.

Parameters:

Raises:

Since:

  • 2.4.0


2323
2324
# File 'Monkeybrains.rb', line 2323

def setValue(key, value)
end