[MOD-2817] iOS NFC: Create class NFCTagReaderSessionProxy class with all respective delegate methods.
GitHub Issue | n/a |
Type | Sub-task |
Priority | None |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2020-12-07T12:26:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | NFC |
Labels | ios |
Reporter | Anil Shukla |
Assignee | Anil Shukla |
Created | 2020-11-19T07:50:43.000+0000 |
Updated | 2020-12-07T12:26:13.000+0000 |
Description
* Add NFC entitlement and update the info.plist
.
* Create class TiNFCTagReaderSessionProxy class with all respective delegate methods.
- (NFCTagReaderSession *)session
- (void)begin:(id)unused
- (void)invalidate:(id)unused
- (void)restartPolling:(id)unused
- (NSNumber *)isEnabled:(id)unused
*NFCReaderSessionDelegate —*
- (void)tagReaderSession:(NFCTagReaderSession *)session didInvalidateWithError:(NSError *)error
Tells the delegate the reason for invalidating a reader session.
- (void)tagReaderSessionDidBecomeActive:(NFCTagReaderSession *)session
Tells the delegate that the reader session is active.
- (void)tagReaderSession:(NFCTagReaderSession *)session didDetectTags: ([NFCTag])tags
Tells the delegate that the session detected NFC tags.
Attachments
PR - https://github.com/appcelerator-modules/ti.nfc/pull/34
not needed