LongSparseArray.SetValueAt(Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given an index in the range 0...size()-1
, sets a new
value for the index
th key-value mapping that this
LongSparseArray stores.
[Android.Runtime.Register("setValueAt", "(ILjava/lang/Object;)V", "GetSetValueAt_ILjava_lang_Object_Handler")]
public virtual void SetValueAt (int index, Java.Lang.Object? value);
[<Android.Runtime.Register("setValueAt", "(ILjava/lang/Object;)V", "GetSetValueAt_ILjava_lang_Object_Handler")>]
abstract member SetValueAt : int * Java.Lang.Object -> unit
override this.SetValueAt : int * Java.Lang.Object -> unit
Parameters
- index
- Int32
- value
- Object
- Attributes
Remarks
Given an index in the range 0...size()-1
, sets a new value for the index
th key-value mapping that this LongSparseArray stores.
For indices outside of the range 0...size()-1
, the behavior is undefined for apps targeting android.os.Build.VERSION_CODES#P
and earlier, and an ArrayIndexOutOfBoundsException
is thrown for apps targeting android.os.Build.VERSION_CODES#Q
and later.
Java documentation for android.util.LongSparseArray.setValueAt(int, E)
.
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.