Udostępnij za pośrednictwem


SparseIntArray Constructors

Definition

Overloads

SparseIntArray()

Creates a new SparseIntArray containing no mappings.

SparseIntArray(Int32)

Creates a new SparseIntArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings.

SparseIntArray(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SparseIntArray()

Creates a new SparseIntArray containing no mappings.

[Android.Runtime.Register(".ctor", "()V", "")]
public SparseIntArray ();
Attributes

Remarks

Creates a new SparseIntArray containing no mappings.

Java documentation for android.util.SparseIntArray.SparseIntArray().

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

SparseIntArray(Int32)

Creates a new SparseIntArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public SparseIntArray (int initialCapacity);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Util.SparseIntArray : int -> Android.Util.SparseIntArray

Parameters

initialCapacity
Int32
Attributes

Remarks

Creates a new SparseIntArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings. If you supply an initial capacity of 0, the sparse array will be initialized with a light-weight representation not requiring any additional array allocations.

Java documentation for android.util.SparseIntArray.SparseIntArray(int).

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

SparseIntArray(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SparseIntArray (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Util.SparseIntArray : nativeint * Android.Runtime.JniHandleOwnership -> Android.Util.SparseIntArray

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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