Show / Hide Table of Contents

    Class NfcNdefRecord

    A class for the NDEF Record information. It allows applications to use the NDEF Record information.

    Inheritance
    Object
    NfcNdefRecord
    Implements
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Tizen.Network.Nfc
    Assembly: Tizen.Network.Nfc.dll
    Syntax
    public class NfcNdefRecord : IDisposable

    Constructors

    NfcNdefRecord(String)

    Creates a record with the URI type payload.

    Declaration
    public NfcNdefRecord(string uri)
    Parameters
    Type Name Description
    String uri

    The URI string that will be stored in the payload.

    API Version
    3
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when the NFC is not supported.

    ArgumentException

    Thrown when the method fails due to an invalid parameter.

    InvalidOperationException

    Thrown when the method fails due to an invalid operation.

    NfcNdefRecord(String, Byte[], UInt32)

    Creates a record with the mime type payload.

    Declaration
    public NfcNdefRecord(string mimeType, byte[] data, uint dataSize)
    Parameters
    Type Name Description
    String mimeType

    The mime type [RFC 2046] (ex. text/plain, image/jpeg ). This value is stored in the type field.

    Byte[] data

    The data in the form of the bytes array.

    UInt32 dataSize

    The size of the data.

    API Version
    3
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when the NFC is not supported.

    ArgumentException

    Thrown when the method fails due to an invalid parameter.

    InvalidOperationException

    Thrown when the method fails due to an invalid operation.

    NfcNdefRecord(String, String, NfcEncodeType)

    Creates a record with the text type payload.

    Declaration
    public NfcNdefRecord(string text, string languageCode, NfcEncodeType encode)
    Parameters
    Type Name Description
    String text

    The encoded text.

    String languageCode

    The language code string value followed by the IANA [RFC 3066] (ex: en-US, ko-KR).

    NfcEncodeType encode

    The encoding type.

    API Version
    3
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when the NFC is not supported.

    ArgumentException

    Thrown when the method fails due to an invalid parameter.

    InvalidOperationException

    Thrown when the method fails due to an invalid operation.

    NfcNdefRecord(NfcRecordTypeNameFormat, Byte[], Byte[], Byte[], UInt32)

    Creates a record with a given parameter value.

    Declaration
    public NfcNdefRecord(NfcRecordTypeNameFormat format, byte[] type, byte[] id, byte[] payload, uint paloadLength)
    Parameters
    Type Name Description
    NfcRecordTypeNameFormat format

    The type name format.

    Byte[] type

    The specified type name.

    Byte[] id

    The record ID.

    Byte[] payload

    The payload of this record.

    UInt32 paloadLength

    The byte size of the payload.

    API Version
    3
    Exceptions
    Type Condition
    NotSupportedException

    Thrown when the NFC is not supported.

    ArgumentException

    Thrown when the method fails due to an invalid parameter.

    InvalidOperationException

    Thrown when the method fails due to an invalid operation.

    Properties

    EncodeType

    The encoding type of the text type NDEF record.

    Declaration
    public NfcEncodeType EncodeType { get; }
    Property Value
    Type Description
    NfcEncodeType
    API Version
    3

    Id

    The record ID.

    Declaration
    public byte[] Id { get; }
    Property Value
    Type Description
    Byte[]
    API Version
    3

    LanguageCode

    The language code of the text type NDEF record.

    Declaration
    public string LanguageCode { get; }
    Property Value
    Type Description
    String
    API Version
    3

    MimeType

    The mime type of the mime type NDEF record.

    Declaration
    public string MimeType { get; }
    Property Value
    Type Description
    String
    API Version
    3

    Payload

    The record payload.

    Declaration
    public byte[] Payload { get; }
    Property Value
    Type Description
    Byte[]
    API Version
    3

    Text

    The text of the text type NDEF record.

    Declaration
    public string Text { get; }
    Property Value
    Type Description
    String
    API Version
    3

    Tnf

    The record TNF (Type Name Format) value.

    Declaration
    public NfcRecordTypeNameFormat Tnf { get; }
    Property Value
    Type Description
    NfcRecordTypeNameFormat
    API Version
    3

    Type

    The record type.

    Declaration
    public byte[] Type { get; }
    Property Value
    Type Description
    Byte[]
    API Version
    3

    Uri

    The URI of the URI type NDEF record.

    Declaration
    public string Uri { get; }
    Property Value
    Type Description
    String
    API Version
    3

    Methods

    Dispose()

    Dispose

    Declaration
    public void Dispose()
    API Version
    3

    Finalize()

    NfcNdefRecord destructor.

    Declaration
    protected void Finalize()

    Implements

    System.IDisposable
    Back to top Copyright © 2016-2018 Samsung
    Generated by DocFX