Share via


TypedArray.GetNonResourceString(Int32) Method

Definition

Retrieves the string value for the attribute at <var>index</var>, but only if that string comes from an immediate value in an XML file.

[Android.Runtime.Register("getNonResourceString", "(I)Ljava/lang/String;", "GetGetNonResourceString_IHandler")]
public virtual string? GetNonResourceString (int index);
[<Android.Runtime.Register("getNonResourceString", "(I)Ljava/lang/String;", "GetGetNonResourceString_IHandler")>]
abstract member GetNonResourceString : int -> string
override this.GetNonResourceString : int -> string

Parameters

index
Int32

Index of attribute to retrieve.

Returns

String holding string data. Any styling information is removed. Returns null if the attribute is not defined or is not an immediate string value.

Attributes

Exceptions

if the TypedArray has already been recycled.

Remarks

Retrieves the string value for the attribute at <var>index</var>, but only if that string comes from an immediate value in an XML file. That is, this does not allow references to string resources, string attributes, or conversions from other types. As such, this method will only return strings for TypedArray objects that come from attributes in an XML file.

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