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

getIntOrThrow

fun TypedArray.getIntOrThrow(@StyleableRes index: Int): Int

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

See Also

TypedArray.hasValue

TypedArray.getInt