Condividi tramite


SparseArray.Set(Int32, Object) Method

Definition

Alias for #put(int, Object) to support Kotlin [index]= operator.

[Android.Runtime.Register("set", "(ILjava/lang/Object;)V", "GetSet_ILjava_lang_Object_Handler", ApiSince=31)]
public virtual void Set (int key, Java.Lang.Object? value);
[<Android.Runtime.Register("set", "(ILjava/lang/Object;)V", "GetSet_ILjava_lang_Object_Handler", ApiSince=31)>]
abstract member Set : int * Java.Lang.Object -> unit
override this.Set : int * Java.Lang.Object -> unit

Parameters

key
Int32
value
Object
Attributes

Remarks

Alias for #put(int, Object) to support Kotlin [index]= operator.

Java documentation for android.util.SparseArray.set(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.

Applies to