W3cubDocs

/Kotlin

ExportObjCClass

Platform and version requirements: Native (1.3)
@Target([AnnotationTarget.CLASS]) annotation class ExportObjCClass

Makes Kotlin subclass of Objective-C class visible for runtime lookup after Kotlin main function gets invoked.

Note: runtime lookup can be forced even when the class is referenced statically from Objective-C source code by adding __attribute__((objc_runtime_visible)) to its @interface.

Constructors

Platform and version requirements: Native (1.3)

<init>

Makes Kotlin subclass of Objective-C class visible for runtime lookup after Kotlin main function gets invoked.

ExportObjCClass(name: String = "")

Properties

Platform and version requirements: Native (1.3)

name

val name: String

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-export-obj-c-class/index.html