Package apple.corenfc.protocol
Interface NFCTag
-
- All Superinterfaces:
NSCoding,NSCopying,NSSecureCoding
- All Known Subinterfaces:
NFCFeliCaTag,NFCISO15693Tag,NFCISO7816Tag,NFCMiFareTag
public interface NFCTag extends NSSecureCoding, NSCopying
[@protocol] NFCTag A NFC / RFID tag object conforms to this protocol. The NFCReaderSession returns an instance of this type when a tag is detected. API-Since: 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable NFCFeliCaTagasNFCFeliCaTag()[@property] asNFCFeliCaTag Returns nil if tag does not conform to NFCFeliCaTag.@Nullable NFCISO15693TagasNFCISO15693Tag()asNFCISO15693Tag@Nullable NFCISO7816TagasNFCISO7816Tag()asNFCISO7816Tag@Nullable NFCMiFareTagasNFCMiFareTag()[@property] asNFCMiFareTag Returns nil if tag does not conform to NFCMiFareTag.booleanisAvailable()[@property] available: Check whether a detected tag is available.@Nullable NFCReaderSessionsession()[@property] session Session that provides this tag.longtype()[@property] type See @link CNFCTagType @link/ API-Since: 11.0-
Methods inherited from interface apple.foundation.protocol.NSCoding
encodeWithCoder, initWithCoder
-
Methods inherited from interface apple.foundation.protocol.NSCopying
copyWithZone
-
Methods inherited from interface apple.foundation.protocol.NSSecureCoding
_supportsSecureCoding
-
-
-
-
Method Detail
-
asNFCFeliCaTag
@Nullable @Nullable NFCFeliCaTag asNFCFeliCaTag()
[@property] asNFCFeliCaTag Returns nil if tag does not conform to NFCFeliCaTag. API-Since: 13.0
-
asNFCISO15693Tag
@Nullable @Nullable NFCISO15693Tag asNFCISO15693Tag()
asNFCISO15693Tag- Returns:
- Returns self if it conforms to the NFCISO15693Tag protocol; else returns nil. API-Since: 13.0
-
asNFCISO7816Tag
@Nullable @Nullable NFCISO7816Tag asNFCISO7816Tag()
asNFCISO7816Tag- Returns:
- Returns self if it conforms to the NFCISO7816Tag protocol; else returns nil. API-Since: 13.0
-
asNFCMiFareTag
@Nullable @Nullable NFCMiFareTag asNFCMiFareTag()
[@property] asNFCMiFareTag Returns nil if tag does not conform to NFCMiFareTag. API-Since: 13.0
-
isAvailable
boolean isAvailable()
[@property] available: Check whether a detected tag is available. API-Since: 11.0- Returns:
- YES if tag is available in the current reader session. A tag remove from the RF field will become unavailable. Tag in disconnected state will return NO.
-
session
@Nullable @Nullable NFCReaderSession session()
[@property] session Session that provides this tag. API-Since: 11.0
-
type
long type()
[@property] type See @link CNFCTagType @link/ API-Since: 11.0
-
-