public interface NFCVASReaderSessionDelegate
Value Added Service (VAS) reader session callbacks.
| Modifier and Type | Method and Description |
|---|---|
default void |
readerSessionDidBecomeActive(NFCVASReaderSession session)
readerSessionDidBecomeActive:
|
void |
readerSessionDidInvalidateWithError(NFCVASReaderSession session,
NSError error)
readerSession:didInvalidateWithError:
|
void |
readerSessionDidReceiveVASResponses(NFCVASReaderSession session,
NSArray<? extends NFCVASResponse> responses)
readerSession:didReceiveVASResponses:
|
void readerSessionDidInvalidateWithError(NFCVASReaderSession session, NSError error)
Gets called when a session becomes invalid. At this point the client is expected to discard the returned session object.
session - The session object that is invalidated.error - The error indicates the invalidation reason.void readerSessionDidReceiveVASResponses(NFCVASReaderSession session, NSArray<? extends NFCVASResponse> responses)
Gets called when the reader completes the requested VAS transaction. Polling is automatically restarted once the detected tag is removed from the reader's read range.
session - The session object used for tag detection.responses - Array of @link NFCVASResponse @link/ objects. The order of the response objects follows the
sequence of GET VAS DATA sent by the reader session.default void readerSessionDidBecomeActive(NFCVASReaderSession session)
Gets called when the NFC reader session has become active. RF is enabled and reader is scanning for VAS tags. The @link readerSession:didReceiveVASResponses: @link/ will be called when a VAS transaction is completed.
session - The session object in the active state.