NAME
Ndef
DESCRIPTION
Represents a NDEF message, or portion of message
DERIVED BY
Rtd
SYNOPSIS
Ndef ndef = new Ndef(bytes[]) Ndef ndef = new Ndef(byte TNF, string TYPE) Ndef ndef = new Ndef(byte TNF, string TYPE, byte[] PAYLOAD) Ndef ndef = new Ndef(Ndef ndef)
SYNOPSIS
public virtual bool Encode(ref byte[] buffer)
DESCRIPTION
Serializes the NDEF and returns true if the operation succeeds
SYNOPSIS
public byte[] GetBytes(bool isBegin, bool isEnd) public byte[] GetBytes()
DESCRIPTION
Uses the "Encode" method to serialize the ndef and returns the byte array. The two parameters isBegin and isEnd indicate if the NDEF is the first or the last in a series of NDEF
SEE ALSO
Ndef.Encode
SYNOPSIS
public byte[] ID
DESCRIPTION
Gets and sets the Id of the NDEF
SYNOPSIS
public delegate void NdefFoundCallback(Ndef ndef)
DESCRIPTION
Specifies the callback that will be called once a NDEF is found
SEE ALSO
Ndef.Parse
SYNOPSIS
public static bool Parse(byte [] buffer, NdefFoundCallback callback) public static bool Parse(byte[] buffer, ref int offset, ref Ndef ndef, ref bool terminated) public static Ndef[] Parse(byte[] buffer)
DESCRIPTION
Analyses a bytes array to retrieve one or several NDEFs in it
SEE ALSO
Ndef.Parse
SYNOPSIS
public byte[] PAYLOAD
DESCRIPTION
Gets and sets the Payload of the NDEF
SYNOPSIS
public void SetMessageBegin(bool mb)
DESCRIPTION
Sets the "MESSAGE BEGIN" bit in header
SEE ALSO
Ndef.SetMessageEnd
SYNOPSIS
public void SetMessageEnd(bool me)
DESCRIPTION
Sets the "MESSAGE END" bit in header
SEE ALSO
Ndef.SetMessageBegin
SYNOPSIS
public int Size(ref bool is_short_record)
DESCRIPTION
Calculates the size in bytes of the whole NDEF The parameter is_short_record indicates if the NDEF is a short record (length of payload < 256)
SYNOPSIS
public byte TNF
DESCRIPTION
Gets and sets the Type Name Format of the NDEF
SYNOPSIS
public string TYPE
DESCRIPTION
Gets and sets the Type of the NDEF