Udostępnij za pośrednictwem


TypedArray.HasValue(Int32) Method

Definition

Determines whether there is an attribute at <var>index</var>.

[Android.Runtime.Register("hasValue", "(I)Z", "GetHasValue_IHandler")]
public virtual bool HasValue (int index);
[<Android.Runtime.Register("hasValue", "(I)Z", "GetHasValue_IHandler")>]
abstract member HasValue : int -> bool
override this.HasValue : int -> bool

Parameters

index
Int32

Index of attribute to retrieve.

Returns

True if the attribute has a value, false otherwise.

Attributes

Exceptions

if the TypedArray has already been recycled.

Remarks

Determines whether there is an attribute at <var>index</var>.

<strong>Note:</strong> If the attribute was set to @empty or @undefined, this method returns false.

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