Class NfcNdefMessage
Definition
- Namespace:
- Tizen.Network.Nfc
- Assembly:
- Tizen.Network.Nfc.dll
- API Level:
- 3
A class for the NDEF Message information. It allows applications to use the NDEF Message information.
C#Copypublic class NfcNdefMessage : IDisposable
- Inheritance
-
NfcNdefMessage
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic NfcNdefMessage()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the NFC is not supported. |
InvalidOperationException | Thrown when the method fails due to an invalid operation. |
API Level: 3
Properties
Declaration
C#Copypublic int RecordCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Methods
Declaration
C#Copypublic bool AppendRecord(NfcNdefRecord record)
Parameters
Type | Name | Description |
---|---|---|
NfcNdefRecord | record | The NfcNdefRecord object that will be appended into the NDEF message. |
Returns
Type | Description |
---|---|
Boolean | Whether the record is appended successfully. |
API Level: 3
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic NfcNdefRecord GetRecord(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of a record ( starts from 0 ). |
Returns
Type | Description |
---|---|
NfcNdefRecord | The NfcNdefRecord object. |
API Level: 3
Declaration
C#Copypublic bool InsertRecord(int index, NfcNdefRecord record)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of a record ( starts from 0 ). |
NfcNdefRecord | record | The NfcNdefRecord object that will be appended into the NDEF message. |
Returns
Type | Description |
---|---|
Boolean | Whether inserting the record succeeded. |
API Level: 3
Declaration
C#Copypublic bool RemoveRecord(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of a record ( starts from 0 ). |
Returns
Type | Description |
---|---|
Boolean | Whether removing the record succeeded. |
API Level: 3
Implements
System.IDisposable