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

getBooleanOrThrow

fun TypedArray.getBooleanOrThrow(@StyleableRes index: Int): Boolean

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

See Also

TypedArray.hasValue

TypedArray.getBoolean