Class NfcTag
Definition
- Namespace:
- Tizen.Network.Nfc
- Assembly:
- Tizen.Network.Nfc.dll
- API Level:
- 3
The class for managing the Tag information.
C#Copypublic class NfcTag : IDisposable
- Inheritance
-
System.ObjectNfcTag
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic NfcTag()
Properties
Declaration
C#Copypublic bool IsSupportNdef { get; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 3
Declaration
C#Copypublic uint MaximumNdefSize { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
API Level: 3
Declaration
C#Copypublic uint NdefSize { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
API Level: 3
Declaration
C#Copypublic NfcTagType Type { get; }
Property Value
Type | Description |
---|---|
NfcTagType |
API Level: 3
Methods
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic IEnumerable<NfcTagInformation> ForeachInformation()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<NfcTagInformation> | The list of the NfcTagInformation objects. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the NFC is not supported. |
System.InvalidOperationException | Thrown when the method fails due to an invalid operation. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
FormatNdefMessageAsync(Byte[])
Formats the detected tag that can store the NDEF message.
Declaration
C#Copypublic Task<NfcError> FormatNdefMessageAsync(byte[] keyValue)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | keyValue | The key value that may need to format the tag. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<NfcError> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the NFC is not supported. |
System.ArgumentException | Thrown when method fails due to an invalid parameter. |
System.InvalidOperationException | Thrown when the method fails due to an invalid operation. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
Declaration
C#Copypublic Task<NfcNdefMessage> ReadNdefMessageAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<NfcNdefMessage> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the NFC is not supported. |
System.InvalidOperationException | Thrown when the method fails due to an invalid operation. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
Declaration
C#Copypublic Task<byte[]> TransceiveAsync(byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buffer | The binary data for a parameter or additional commands. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Byte[]> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the NFC is not supported. |
System.ArgumentException | Thrown when the method fails due to an invalid parameter. |
System.InvalidOperationException | Thrown when the the method fails due to an invalid operation. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/nfc
Declaration
C#Copypublic Task<NfcError> WriteNdefMessageAsync(NfcNdefMessage ndefMessage)
Parameters
Type | Name | Description |
---|---|---|
NfcNdefMessage | ndefMessage | The NfcNdefMessage object. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<NfcError> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the NFC is not supported. |
System.ArgumentException | Thrown when the method fails due to an invalid parameter. |
System.InvalidOperationException | Thrown when the method fails due to an invalid operation. |