TypedArray.GetNonResourceString(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.