ObjCName
@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
<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
)