aleksey.tomin
07/07/2020, 12:51 PMorg.jetbrains.kotlinx:kotlinx-serialization
?
2. I’ve found example for OSX but can’t understand how convert it to kotlin: https://stackoverflow.com/questions/21791702/nsxmlparser-simple-example
3. And how can I override this methods:
@kotlinx.cinterop.ExternalObjCClass public interface NSXMLParserDelegateProtocol : platform.darwin.NSObjectProtocol {
@kotlinx.cinterop.ObjCMethod public open fun parser(parser: platform.Foundation.NSXMLParser, didEndMappingPrefix: kotlin.String): kotlin.Unit { /* compiled code */ }
@kotlinx.cinterop.ObjCMethod public open fun parser(parser: platform.Foundation.NSXMLParser, foundCharacters: kotlin.String): kotlin.Unit { /* compiled code */ }
...
svyatoslav.scherbina
07/08/2020, 11:33 AMAnd how can I override this methodsGenerally using
override fun
in Kotlin should be enough.aleksey.tomin
07/08/2020, 11:41 AMsvyatoslav.scherbina
07/08/2020, 11:43 AMTo override different methods with clashing Kotlin signatures, you can add aannotation to the class.@Suppress("CONFLICTING_OVERLOADS")