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#
Copy
public class NfcNdefMessage : IDisposable
Inheritance
System.Object
NfcNdefMessage
Implements
System.IDisposable

Constructors

View Source

NfcNdefMessage()

Creates an object for the access point.

Declaration
C#
Copy
public 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

Properties

View Source

RecordCount

The number of records in the NDEF message.

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

Methods

View Source

AppendRecord(NfcNdefRecord)

Appends a record into the NDEF message.

Declaration
C#
Copy
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 Source

Dispose()

Dispose

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

Finalize()

NfcNdefMessage destructor.

Declaration
C#
Copy
protected void Finalize()
View Source

GetRecord(Int32)

Gets a record by the index.

Declaration
C#
Copy
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 Source

InsertRecord(Int32, NfcNdefRecord)

Inserts a record at the index into the NDEF message.

Declaration
C#
Copy
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 Source

RemoveRecord(Int32)

Removes a record at the index into the NDEF message.

Declaration
C#
Copy
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.

API Level: 3

Implements

System.IDisposable