Java.Util.Prefs.AbstractPreferences.PutInt Method
Adds a new preference to this node using the given key and int value or updates the value if a preference with the given key already exists.

Syntax

[Android.Runtime.Register("putInt", "(Ljava/lang/String;I)V", "GetPutInt_Ljava_lang_String_IHandler")]
public override void PutInt (string key, int value)

Parameters

key
the preference key to be added or updated.
value
the preference value for the given key.

Remarks

Adds a new preference to this node using the given key and int 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.Integer.ToString(int).

[Android Documentation]

Requirements

Namespace: Java.Util.Prefs
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1