NAME
NfcTag
DESCRIPTION
Represents an NFC Tag that has been discovered on a reader
DERIVED BY
NfcTagType2 NfcTagType4
SYNOPSIS
NfcTag tag = new NfcTag(SCardChannel channel)
SYNOPSIS
public long Capacity()
DESCRIPTION
Returns the size of the Tag's NDEF storage container.
SEE ALSO
NfcTag.ContentSize
SYNOPSIS
public List<NDEF> Content
DESCRIPTION
The list of NDEF objects found on the Tag. To change the Tag's content, update this list before calling NfcTag.Write
SEE ALSO
NfcTag.ContentSize
SYNOPSIS
public long ContentSize()
DESCRIPTION
Returns the actual size of the Tag's NDEF content.
SEE ALSO
NfcTag.Capacity
SYNOPSIS
public bool Format()
DESCRIPTION
Formats the physical Tag currently on the reader. This is only possible if IsFormattable returns true. Return true on success.
SEE ALSO
NfcTag.IsFormatted NfcTag.IsFormatable NfcTag.Write
SYNOPSIS
public bool IsEmpty()
DESCRIPTION
Returns true if the NfcTag doesn't contain any data.
SEE ALSO
NfcTag.Write
SYNOPSIS
public bool IsFormattable()
DESCRIPTION
Returns true if the NfcTag be formatted to store a NDEF content.
SEE ALSO
NfcTag.IsFormatted NfcTag.Format
SYNOPSIS
public bool IsFormatted()
DESCRIPTION
Returns true if the NfcTag is ready to store a NDEF content.
SEE ALSO
NfcTag.IsFormattable NfcTag.Format
SYNOPSIS
public bool IsLockable()
DESCRIPTION
Returns true if the NfcTag could be locked in read-only state.
SEE ALSO
NfcTag.IsLocked NfcTag.Lock
SYNOPSIS
public bool IsLocked()
DESCRIPTION
Returns true if the NfcTag is locked in read-only state
SEE ALSO
NfcTag.IsLockable NfcTag.Lock
SYNOPSIS
public bool Lock()
DESCRIPTION
Sets physical Tag currently on the reader in read-only (locked) state. This is only possible if IsLockable returns true. Returns true on success.
SYNOPSIS
public static bool Recognize(SCardChannel cardchannel, out NfcTag tag, out string msg)
DESCRIPTION
Determines if the card on the reader is a NFC Forum compliant tag It first checks the ATR to determine if the card can be type 2 or a type 4 and tries to recognize the content of the tag. It creates either a NfcTagType2 or a NfcTagType4 and returns true if the tag is recognized. It returns false if the card is not a NFC Forum tag
SEE ALSO
NfcTagType2.RecognizeAtr NfcTagType2.Recognize NfcTagType2.Create NfcTagType4.Recognize NfcTagType4.Create
SYNOPSIS
public bool Write(bool skip_checks = false)
DESCRIPTION
Writes the new content of the NfcTag object to the physical Tag currently on the reader. If parameter skip_checks is true, the function doesn't verify whether the Tag is writable or not before trying to write. Returns true on success.
NOTES
The Tag must already be formatted. See NfcTag.IsFormatted and NfcTag.Format.