Pxs Member Licensed User Jun 10, 2024 #1 Hello I'm not sure how b4i works with global variables inside embedded code I'm trying to implement a NFC Scan alternative that detects ISO15693 tags ( current NFC.scan only detects tags with NDEF info on them) I need to store a "NFCTagReaderSession" upon detecting the tag, for later use in reads and writes MY attemps at getting that value to persist have all failed...I'm trying to use a global value Objective-C: Copy @property (nonatomic, strong) NFCTagReaderSession *session; To save the value, but it's not working...someone can tip me in the right direction? Thanks alot
Hello I'm not sure how b4i works with global variables inside embedded code I'm trying to implement a NFC Scan alternative that detects ISO15693 tags ( current NFC.scan only detects tags with NDEF info on them) I need to store a "NFCTagReaderSession" upon detecting the tag, for later use in reads and writes MY attemps at getting that value to persist have all failed...I'm trying to use a global value Objective-C: Copy @property (nonatomic, strong) NFCTagReaderSession *session; To save the value, but it's not working...someone can tip me in the right direction? Thanks alot
Erel B4X founder Staff member Licensed User Longtime User Jun 10, 2024 #2 There are all kinds of ways to implement it. The simplest one is to create the object with NativeObject. Another option is to return it from the OBJC method and store it in the B4i code. Later pass it when needed. Upvote 0
There are all kinds of ways to implement it. The simplest one is to create the object with NativeObject. Another option is to return it from the OBJC method and store it in the B4i code. Later pass it when needed.