W3cubDocs

/Kotlin

getOriginalKotlinClass

Platform and version requirements: Native (1.3)
fun getOriginalKotlinClass(objCClass: ObjCClass): KClass<*>?

If objCClass is a class generated to Objective-C header for Kotlin class, returns KClass for that original Kotlin class.

Otherwise returns null.

Platform and version requirements: Native (1.3)
fun getOriginalKotlinClass(
    objCProtocol: ObjCProtocol
): KClass<*>?

If objCProtocol is a protocol generated to Objective-C header for Kotlin class, returns KClass for that original Kotlin class.

Otherwise returns null.

© 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/kotlinx.cinterop/get-original-kotlin-class.html