Package-level declarations

Types

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION])
expect annotation class HiddenFromObjC

Instructs the Kotlin compiler to remove this function or property from the public Objective-C API.

Since Kotlin 1.2
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS])
expect annotation class HidesFromObjC

Meta-annotation that instructs the Kotlin compiler to remove the annotated function or property from the public Objective-C API.

Since Kotlin 1.2
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FUNCTION])
expect annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)

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

Since Kotlin 1.2
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS])
expect annotation class RefinesInSwift

Meta-annotation that instructs the Kotlin compiler to mark the annotated function or property as swift_private in the generated Objective-C API.

Since Kotlin 1.2
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION])
expect annotation class ShouldRefineInSwift

Instructs the Kotlin compiler to mark this function or property as swift_private in the generated Objective-C API.

Since Kotlin 1.2