EntryName

@Target(allowedTargets = [AnnotationTarget.CLASS])
expect annotation class EntryName(val name: String, val swiftName: String = "")(source)

This annotation affects the names of the generated NS_ENUM enumerators. It overrides the implied enum entry name and an enum entry name set via @ObjCName. A separate name for Swift can be specified via the swiftName parameter. An EntryName annotation will always override the Swift name implied or set by other means, even if swiftName is not set explicitly. This annotation does not override the prefix implied or set by ObjCEnum.

Since Kotlin

2.3
@Target(allowedTargets = [AnnotationTarget.CLASS])
actual annotation class EntryName(val name: String, val swiftName: String = "")(source)

This annotation affects the names of the generated NS_ENUM enumerators. It overrides the implied enum entry name and an enum entry name set via @ObjCName. A separate name for Swift can be specified via the swiftName parameter. An EntryName annotation will always override the Swift name implied or set by other means, even if swiftName is not set explicitly. This annotation does not override the prefix implied or set by ObjCEnum.

Since Kotlin

2.3

Properties

Link copied to clipboard
expect val name: String
Since Kotlin 2.3
actual val name: String
Since Kotlin 2.3
Link copied to clipboard
expect val swiftName: String
Since Kotlin 2.3
actual val swiftName: String
Since Kotlin 2.3