ObjCName

expect annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)(source)

Instructs the Kotlin compiler to use a custom Objective-C and/or Swift name for this class, property, parameter or function.

Since Kotlin

1.8

Parameters

exact

specifies if the name of a class should be interpreted as the exact name. E.g. the compiler won't add a top level prefix or the outer class names to exact names.

actual annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)(source)

Instructs the Kotlin compiler to use a custom Objective-C and/or Swift name for this class, property, parameter or function.

Since Kotlin

1.8

Parameters

exact

specifies if the name of a class should be interpreted as the exact name. E.g. the compiler won't add a top level prefix or the outer class names to exact names.

Properties

Link copied to clipboard
expect val exact: Boolean = false
Since Kotlin 1.8
actual val exact: Boolean = false
Since Kotlin 1.8
Link copied to clipboard
expect val name: String
Since Kotlin 1.8
actual val name: String
Since Kotlin 1.8
Link copied to clipboard
expect val swiftName: String
Since Kotlin 1.8
actual val swiftName: String
Since Kotlin 1.8