core-ktx / androidx.content.res / android.content.res.TypedArray / getStringOrThrow

getStringOrThrow

fun TypedArray.getStringOrThrow(@StyleableRes index: Int): String

Retrieve the string value for the attribute at index or throws IllegalArgumentException if not defined.

See Also

TypedArray.hasValue

TypedArray.getString