Class NfcTag

    Definition

    Namespace:
    Tizen.Network.Nfc
    Assembly:
    Tizen.Network.Nfc.dll

    The class for managing the Tag information.

    public class NfcTag : IDisposable
    Inheritance
    object
    NfcTag
    Implements
    System.IDisposable

    Constructors

    View Source

    NfcTag()

    Constructor of NfcTag

    Declaration
    public NfcTag()

    Properties

    View Source

    IsSupportNdef

    Whether the given NFC tag supports the NDEF messages.

    Declaration
    public bool IsSupportNdef { get; }
    Property Value
    Type Description
    bool
    View Source

    MaximumNdefSize

    The maximum NDEF message size that can be stored in the NFC tag.

    Declaration
    public uint MaximumNdefSize { get; }
    Property Value
    Type Description
    uint
    View Source

    NdefSize

    The size of the NDEF message stored in the tag.

    Declaration
    public uint NdefSize { get; }
    Property Value
    Type Description
    uint
    View Source

    Type

    The type of the NFC tag.

    Declaration
    public NfcTagType Type { get; }
    Property Value
    Type Description
    NfcTagType

    Methods

    View Source

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    View Source

    ~NfcTag()

    NfcTag destructor.

    Declaration
    protected ~NfcTag()
    View Source

    ForeachInformation()

    Retrieves all the tag information.

    Declaration
    public IEnumerable<NfcTagInformation> ForeachInformation()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<T><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.

    View Source

    FormatNdefMessageAsync(byte[])

    Formats the detected tag that can store the NDEF message.

    Declaration
    public Task<NfcError> FormatNdefMessageAsync(byte[] keyValue)
    Parameters
    Type Name Description
    byte[] keyValue

    The key value that may need to format the tag.

    Returns
    Type Description
    System.Threading.Tasks.Task<TResult><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.

    View Source

    ReadNdefMessageAsync()

    Reads the NDEF formatted data from the NFC tag.

    Declaration
    public Task<NfcNdefMessage> ReadNdefMessageAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task<TResult><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.

    View Source

    TransceiveAsync(byte[])

    Transceives the data of the raw format card.

    Declaration
    public Task<byte[]> TransceiveAsync(byte[] buffer)
    Parameters
    Type Name Description
    byte[] buffer

    The binary data for a parameter or additional commands.

    Returns
    Type Description
    System.Threading.Tasks.Task<TResult><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.

    View Source

    WriteNdefMessageAsync(NfcNdefMessage)

    Writes the NDEF formatted data.

    Declaration
    public Task<NfcError> WriteNdefMessageAsync(NfcNdefMessage ndefMessage)
    Parameters
    Type Name Description
    NfcNdefMessage ndefMessage

    The NfcNdefMessage object.

    Returns
    Type Description
    System.Threading.Tasks.Task<TResult><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.

    Implements

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