Share via


Preferences.PutDouble(String, Double) Method

Definition

Associates a string representing the specified double value with the specified key in this preference node.

[Android.Runtime.Register("putDouble", "(Ljava/lang/String;D)V", "GetPutDouble_Ljava_lang_String_DHandler")]
public abstract void PutDouble (string? key, double value);
[<Android.Runtime.Register("putDouble", "(Ljava/lang/String;D)V", "GetPutDouble_Ljava_lang_String_DHandler")>]
abstract member PutDouble : string * double -> unit

Parameters

key
String

key with which the string form of value is to be associated.

value
Double

value whose string form is to be associated with key.

Attributes

Exceptions

if the given key is null.

if the given key's length is bigger than MAX_KEY_LENGTH.

if this node has been removed.

Remarks

Associates a string representing the specified double value with the specified key in this preference node. The associated string is the one that would be returned if the double value were passed to Double#toString(double). This method is intended for use in conjunction with #getDouble.

Java documentation for java.util.prefs.Preferences.putDouble(java.lang.String, double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to