https://kotlinlang.org logo
#ios
Title
# ios
j

Jacob Rhoda

09/26/2023, 5:22 PM
Have you tried making it non-private? Also, I’m seeing that classes extending Obj-C classes need to be
final
. https://kotlinlang.org/docs/native-objc-interop.html#subclassing-swift-objective-c-classes-and-protocols-from-kotlin
g

Giovanni Trenta

10/04/2023, 1:15 PM
I also have the same error as Carlo, although the func tagReaderSessionDidBecomeActive is called correctly, however the func tagReaderSession(session: NFCTagReaderSession, didDetectTags: List<*>) gives the error “Delegate does not implement -tagReaderSessiondidDetectTags method” . Could this be a recognized bug? I read that with swift the delegate implementation code is this “tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) ” but in kotlin it is different “tagReaderSession(session: NFCTagReaderSession, didDetectTags: List<*>)”
j

Jacob Rhoda

10/04/2023, 1:16 PM
Ah yeah you might have to change the ObjC name with an annotation. The compiler might be mangling that.
c

Carlo De Chellis

10/04/2023, 1:22 PM
Hi, thanks for your time, but: @ObjCName is not applicable on overrides
👍 1
ide said
j

Jacob Rhoda

10/04/2023, 1:23 PM
Shoot. Sorry!
c

Carlo De Chellis

10/04/2023, 1:27 PM
any help is appreciated
g

Giovanni Trenta

10/04/2023, 2:29 PM
thanks for the help, any suggestion is welcome, also because I haven’t found any example of using nfc for ios with kotlin multiplatform
5 Views