- key
- the preference key to be added or updated.
- value
- the preference value for the given key.
Adds a new preference to this node using the given key and float value or updates the value if a preference with the given key already exists.
The value is stored in its string form, which is the result of invoking Java.Lang.Float.ToString(float).