Colton Idle
08/08/2024, 5:30 AMoverride fun readerSession(session: NFCNDEFReaderSession, didDetectNDEFs messages: List<*>) {
// Read nfc tags
}
override fun readerSession(session: NFCNDEFReaderSession, didDetectTags: List<*>) {
// write nfc tags
}
but I'm 'not allowed (seemingly because the method signatures are the same.
Any way around that? It swift it seems like you can use declare both methods in the same fileColton Idle
08/08/2024, 5:31 AM@kotlin.commonizer.ObjCCallable @kotlinx.cinterop.ObjCMethod public abstract expect fun readerSession(session: platform.CoreNFC.NFCNDEFReaderSession, didDetectNDEFs: kotlin.collections.List<*>): kotlin.Unit
@kotlin.commonizer.ObjCCallable @kotlinx.cinterop.ObjCMethod public open expect fun readerSession(session: platform.CoreNFC.NFCNDEFReaderSession, didDetectTags: kotlin.collections.List<*>): kotlin.Unit { /* compiled code */ }
Colton Idle
08/08/2024, 5:55 AMFrançois
08/08/2024, 6:00 AMColton Idle
08/08/2024, 6:21 AMFrançois
08/08/2024, 6:38 AMNFCNDEFReaderSessionDelegateProtocol
and it’s really bad, I’m will report itFrançois
08/08/2024, 6:40 AMColton Idle
08/08/2024, 6:53 AMFrançois
08/08/2024, 7:25 AMColton Idle
08/08/2024, 7:26 AMFrançois
08/08/2024, 7:28 AMColton Idle
08/14/2024, 11:31 AMFrançois
08/14/2024, 4:40 PMFrançois
08/14/2024, 4:41 PMFrançois
08/14/2024, 4:42 PMColton Idle
08/14/2024, 7:35 PMFrançois
08/14/2024, 9:49 PMFrançois
08/14/2024, 9:49 PMFrançois
08/14/2024, 9:59 PMColton Idle
08/15/2024, 3:50 PM