when is kotlin reflect lib necessary?

Viewed 490

In the docs ( https://kotlinlang.org/docs/reference/reflection.html ) it is not mentioned what features of the reflection api are included in the reflection library. I can do basic reflection (listing members,parameters,etc) without explicitly referencing this library. When do i have to include it on android ?

1 Answers

Generally speaking, the main types (such as KClass) are in the standard library's kotlin.reflect package. But most of their extension properties and functions are in kotlin.reflect.full; that's provided by kotlin-reflect. So is kotlin.reflect.jvm.

Related