W3cubDocs

/Kotlin

companionObject

Platform and version requirements: JVM (1.1)
val KClass<*>.companionObject: KClass<*>?

Returns a KClass instance representing the companion object of a given class, or null if the class doesn't have a companion object.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect.full/companion-object.html