ObjCName

Common
Native
1.8
@Target([AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION]) @ExperimentalObjCName annotation class ObjCName
(Common source) (Native source)

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

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.

Constructors

Common
Native
1.0

<init>

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

<init>(
    name: String = "",
    swiftName: String = "",
    exact: Boolean = false)

Properties

Common
Native
1.0

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.

val exact: Boolean
Common
Native
1.0

name

val name: String
Common
Native
1.0

swiftName

val swiftName: String