TypedArray.HasValueOrEmpty(Int32) Method

Definition

Determines whether there is an attribute at <var>index</var>, returning true if the attribute was explicitly set to @empty and false only if the attribute was undefined.

[Android.Runtime.Register("hasValueOrEmpty", "(I)Z", "GetHasValueOrEmpty_IHandler", ApiSince=22)]
public virtual bool HasValueOrEmpty (int index);
[<Android.Runtime.Register("hasValueOrEmpty", "(I)Z", "GetHasValueOrEmpty_IHandler", ApiSince=22)>]
abstract member HasValueOrEmpty : int -> bool
override this.HasValueOrEmpty : int -> bool

Parameters

index
Int32

Index of attribute to retrieve.

Returns

True if the attribute has a value or is empty, false otherwise.

Attributes

Remarks

Determines whether there is an attribute at <var>index</var>, returning true if the attribute was explicitly set to @empty and false only if the attribute was undefined.

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