2

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 ?

IulianT
  • 350
  • 1
  • 3
  • 13

1 Answers1

1

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.

Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487