TypedArray.PeekValue(Int32) Method

Definition

Retrieve the raw TypedValue for the attribute at <var>index</var> and return a temporary object holding its data.

[Android.Runtime.Register("peekValue", "(I)Landroid/util/TypedValue;", "GetPeekValue_IHandler")]
public virtual Android.Util.TypedValue? PeekValue (int index);
[<Android.Runtime.Register("peekValue", "(I)Landroid/util/TypedValue;", "GetPeekValue_IHandler")>]
abstract member PeekValue : int -> Android.Util.TypedValue
override this.PeekValue : int -> Android.Util.TypedValue

Parameters

index
Int32

Index of attribute to retrieve.

Returns

Returns a TypedValue object if the attribute is defined, containing its data; otherwise returns null. (You will not receive a TypedValue whose type is TYPE_NULL.)

Attributes

Exceptions

if the TypedArray has already been recycled.

Remarks

Retrieve the raw TypedValue for the attribute at <var>index</var> and return a temporary object holding its data. This object is only valid until the next call on to TypedArray.

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