ExportObjCClass

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class ExportObjCClass(name: String)

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

ExportObjCClass
Link copied to clipboard
fun ExportObjCClass(name: String = "")

Properties

name
Link copied to clipboard
val name: String