SparseBooleanArray Constructors
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.
Overloads
SparseBooleanArray() |
Creates a new SparseBooleanArray containing no mappings. |
SparseBooleanArray(Int32) |
Creates a new SparseBooleanArray containing no mappings that will not require any additional memory allocation to store the specified number of mappings. |
SparseBooleanArray(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
SparseBooleanArray()
Creates a new SparseBooleanArray containing no mappings.
[Android.Runtime.Register(".ctor", "()V", "")]
public SparseBooleanArray ();
- Attributes
Remarks
Creates a new SparseBooleanArray containing no mappings.
Java documentation for android.util.SparseBooleanArray.SparseBooleanArray()
.
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
SparseBooleanArray(Int32)
Creates a new SparseBooleanArray 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 SparseBooleanArray (int initialCapacity);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Android.Util.SparseBooleanArray : int -> Android.Util.SparseBooleanArray
Parameters
- initialCapacity
- Int32
- Attributes
Remarks
Creates a new SparseBooleanArray 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.SparseBooleanArray.SparseBooleanArray(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
SparseBooleanArray(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected SparseBooleanArray (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Util.SparseBooleanArray : nativeint * Android.Runtime.JniHandleOwnership -> Android.Util.SparseBooleanArray
Parameters
- 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.