TypedArray.GetIndex(Int32) Method

Definition

Returns an index in the array that has data.

[Android.Runtime.Register("getIndex", "(I)I", "GetGetIndex_IHandler")]
public virtual int GetIndex (int at);
[<Android.Runtime.Register("getIndex", "(I)I", "GetGetIndex_IHandler")>]
abstract member GetIndex : int -> int
override this.GetIndex : int -> int

Parameters

at
Int32

The index you would like to returned, ranging from 0 to #getIndexCount().

Returns

The index at the given offset, which can be used with #getValue and related APIs.

Attributes

Exceptions

if the TypedArray has already been recycled.

Remarks

Returns an index in the array that has data. Attributes with a value of

Java documentation for android.content.res.TypedArray.getIndex(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