Class NfcTag

Definition

Namespace:
Tizen.Network.Nfc
Assembly:
Tizen.Network.Nfc.dll
API Level:
3

The class for managing the Tag information.

C#
Copy
public class NfcTag : IDisposable
Inheritance
NfcTag

Constructors

View Source

NfcTag()

Constructor of NfcTag

Declaration
C#
Copy
public NfcTag()

Properties

View Source

IsSupportNdef

Whether the given NFC tag supports the NDEF messages.

Declaration
C#
Copy
public bool IsSupportNdef { get; }
Property Value
Type Description
Boolean
API Level: 3
View Source

MaximumNdefSize

The maximum NDEF message size that can be stored in the NFC tag.

Declaration
C#
Copy
public uint MaximumNdefSize { get; }
Property Value
Type Description
UInt32
API Level: 3
View Source

NdefSize

The size of the NDEF message stored in the tag.

Declaration
C#
Copy
public uint NdefSize { get; }
Property Value
Type Description
UInt32
API Level: 3
View Source

Type

The type of the NFC tag.

Declaration
C#
Copy
public NfcTagType Type { get; }
Property Value
Type Description
NfcTagType
API Level: 3

Methods

View Source

Dispose()

Dispose

Declaration
C#
Copy
public void Dispose()
API Level: 3
View Source

Finalize()

NfcTag destructor.

Declaration
C#
Copy
protected void Finalize()
View Source

ForeachInformation()

Retrieves all the tag information.

Declaration
C#
Copy
public IEnumerable<NfcTagInformation> ForeachInformation()
Returns
Type Description
IEnumerable<NfcTagInformation>

The list of the NfcTagInformation objects.

API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
View Source

FormatNdefMessageAsync(Byte[])

Formats the detected tag that can store the NDEF message.

Declaration
C#
Copy
public Task<NfcError> FormatNdefMessageAsync(byte[] keyValue)
Parameters
Type Name Description
Byte[] keyValue

The key value that may need to format the tag.

Returns
Type Description
Task<NfcError>
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
View Source

ReadNdefMessageAsync()

Reads the NDEF formatted data from the NFC tag.

Declaration
C#
Copy
public Task<NfcNdefMessage> ReadNdefMessageAsync()
Returns
Type Description
Task<NfcNdefMessage>
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
View Source

TransceiveAsync(Byte[])

Transceives the data of the raw format card.

Declaration
C#
Copy
public Task<byte[]> TransceiveAsync(byte[] buffer)
Parameters
Type Name Description
Byte[] buffer

The binary data for a parameter or additional commands.

Returns
Type Description
Task<Byte[]>
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
View Source

WriteNdefMessageAsync(NfcNdefMessage)

Writes the NDEF formatted data.

Declaration
C#
Copy
public Task<NfcError> WriteNdefMessageAsync(NfcNdefMessage ndefMessage)
Parameters
Type Name Description
NfcNdefMessage ndefMessage

The NfcNdefMessage object.

Returns
Type Description
Task<NfcError>
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc

Extension Methods