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.
public class NfcNdefMessage : IDisposable
- Inheritance
-
NfcNdefMessage
- Implements
Constructors
View SourceNfcNdefMessage()
Creates an object for the access point.
Declaration
public NfcNdefMessage()
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown when the NFC is not supported. |
InvalidOperationException | Thrown when the method fails due to an invalid operation. |
API Level: 3
Properties
View SourceRecordCount
The number of records in the NDEF message.
Declaration
public int RecordCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 3
Methods
View SourceAppendRecord(NfcNdefRecord)
Appends a record into the NDEF message.
Declaration
public 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
View SourceDispose()
Dispose
Declaration
public void Dispose()
API Level: 3
View SourceFinalize()
NfcNdefMessage destructor.
Declaration
protected void Finalize()
GetRecord(Int32)
Gets a record by the index.
Declaration
public NfcNdefRecord GetRecord(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of a record ( starts from 0 ). |
Returns
Type | Description |
---|---|
NfcNdefRecord | The NfcNdefRecord object. |
API Level: 3
View SourceInsertRecord(Int32, NfcNdefRecord)
Inserts a record at the index into the NDEF message.
Declaration
public bool InsertRecord(int index, NfcNdefRecord record)
Parameters
Type | Name | Description |
---|---|---|
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
View SourceRemoveRecord(Int32)
Removes a record at the index into the NDEF message.
Declaration
public bool RemoveRecord(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of a record ( starts from 0 ). |
Returns
Type | Description |
---|---|
Boolean | Whether removing the record succeeded. |