SparseIntArray.Get 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.
Overloads
Get(Int32) |
Gets the int mapped from the specified key, or |
Get(Int32, Int32) |
Gets the int mapped from the specified key, or the specified value if no such mapping has been made. |
Get(Int32)
Gets the int mapped from the specified key, or 0
if no such mapping has been made.
[Android.Runtime.Register("get", "(I)I", "GetGet_IHandler")]
public virtual int Get (int key);
[<Android.Runtime.Register("get", "(I)I", "GetGet_IHandler")>]
abstract member Get : int -> int
override this.Get : int -> int
Parameters
- key
- Int32
Returns
- Attributes
Remarks
Gets the int mapped from the specified key, or 0
if no such mapping has been made.
Java documentation for android.util.SparseIntArray.get(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
Get(Int32, Int32)
Gets the int mapped from the specified key, or the specified value if no such mapping has been made.
[Android.Runtime.Register("get", "(II)I", "GetGet_IIHandler")]
public virtual int Get (int key, int valueIfKeyNotFound);
[<Android.Runtime.Register("get", "(II)I", "GetGet_IIHandler")>]
abstract member Get : int * int -> int
override this.Get : int * int -> int
Parameters
- key
- Int32
- valueIfKeyNotFound
- Int32
Returns
- Attributes
Remarks
Gets the int mapped from the specified key, or the specified value if no such mapping has been made.
Java documentation for android.util.SparseIntArray.get(int, 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.