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

getResourceIdOrThrow

@AnyRes fun TypedArray.getResourceIdOrThrow(@StyleableRes index: Int): Int

Retrieves the resource identifier for the attribute at index or throws IllegalArgumentException if not defined.

See Also

TypedArray.hasValue

TypedArray.getResourceId