Show / Hide Table of Contents

    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
    Object
    NfcNdefMessage
    Implements
    IDisposable

    Constructors

    View Source

    NfcNdefMessage()

    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 Source

    RecordCount

    The number of records in the NDEF message.

    Declaration
    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
    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
    public void Dispose()
    API Level: 3
    View Source

    Finalize()

    NfcNdefMessage destructor.

    Declaration
    protected void Finalize()
    View Source

    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 Source

    InsertRecord(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 Source

    RemoveRecord(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.

    API Level: 3

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX