Class NfcTag
Definition
- Assembly:
- Tizen.Network.Nfc.dll
The class for managing the Tag information.
C#
Copy
public class NfcTag : IDisposable
- Inheritance
-
objectNfc
Tag
- Implements
-
System.
IDisposable
Constructors
Declaration
C#
Copy
public NfcTag()
Properties
Declaration
C#
Copy
public bool IsSupportNdef { get; }
Property Value
Type | Description |
---|---|
bool |
Declaration
C#
Copy
public uint MaximumNdefSize { get; }
Property Value
Type | Description |
---|---|
uint |
Declaration
C#
Copy
public uint NdefSize { get; }
Property Value
Type | Description |
---|---|
uint |
Declaration
C#
Copy
public NfcTagType Type { get; }
Property Value
Type | Description |
---|---|
Nfc |
Methods
Declaration
C#
Copy
public void Dispose()
Declaration
C#
Copy
protected ~NfcTag()
Declaration
C#
Copy
public IEnumerable<NfcTagInformation> ForeachInformation()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><Nfc |
The list of the NfcTagInformation objects. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the NFC is not supported. |
System. |
Thrown when the method fails due to an invalid operation. |
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 |
---|---|
System.Threading.Tasks.Task<TResult><Nfc |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the NFC is not supported. |
System. |
Thrown when method fails due to an invalid parameter. |
System. |
Thrown when the method fails due to an invalid operation. |
Declaration
C#
Copy
public Task<NfcNdefMessage> ReadNdefMessageAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><Nfc |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the NFC is not supported. |
System. |
Thrown when the method fails due to an invalid operation. |
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 |
---|---|
System.Threading.Tasks.Task<TResult><byte[]> |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the NFC is not supported. |
System. |
Thrown when the method fails due to an invalid parameter. |
System. |
Thrown when the the method fails due to an invalid operation. |
Declaration
C#
Copy
public Task<NfcError> WriteNdefMessageAsync(NfcNdefMessage ndefMessage)
Parameters
Type | Name | Description |
---|---|---|
Nfc |
ndefMessage | The NfcNdefMessage object. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><Nfc |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when the NFC is not supported. |
System. |
Thrown when the method fails due to an invalid parameter. |
System. |
Thrown when the method fails due to an invalid operation. |