IT. Expert System.

Android Reference

NfcB


android.nfc.tech

Class NfcB

    • Method Detail

      • get

        public static NfcB get(Tag tag)
        Get an instance of NfcB for the given tag.

        Returns null if NfcB was not enumerated in Tag.getTechList(). This indicates the tag does not support NFC-B.

        Does not cause any RF activity and does not block.

        Parameters:
        tag - an NFC-B compatible tag
        Returns:
        NFC-B object
      • getApplicationData

        public byte[] getApplicationData()
        Return the Application Data bytes from ATQB/SENSB_RES at tag discovery.

        Does not cause any RF activity and does not block.

        Returns:
        Application Data bytes from ATQB/SENSB_RES bytes
      • getProtocolInfo

        public byte[] getProtocolInfo()
        Return the Protocol Info bytes from ATQB/SENSB_RES at tag discovery.

        Does not cause any RF activity and does not block.

        Returns:
        Protocol Info bytes from ATQB/SENSB_RES bytes
      • transceive

        public byte[] transceive(byte[] data)
                          throws IOException
        Send raw NFC-B commands to the tag and receive the response.

        Applications must not append the EoD (CRC) to the payload, it will be automatically calculated.

        Applications must not send commands that manage the polling loop and initialization (SENSB_REQ, SLOT_MARKER etc).

        Use getMaxTransceiveLength() to retrieve the maximum number of bytes that can be sent with transceive(byte[]).

        This is an I/O operation and will block until complete. It must not be called from the main application thread. A blocked call will be canceled with IOException if close() is called from another thread.

        Requires the android.Manifest.permission#NFC permission.

        Parameters:
        data - bytes to send
        Returns:
        bytes received in response
        Throws:
        TagLostException - if the tag leaves the field
        IOException - if there is an I/O failure, or this operation is canceled
      • getMaxTransceiveLength

        public int getMaxTransceiveLength()
        Return the maximum number of bytes that can be sent with transceive(byte[]).
        Returns:
        the maximum number of bytes that can be sent with transceive(byte[]).
      • isConnected

        public boolean isConnected()
        Description copied from interface: TagTechnology
        Helper to indicate if I/O operations should be possible.

        Returns true if TagTechnology.connect() has completed, and TagTechnology.close() has not been called, and the Tag is not known to be out of range.

        Does not cause RF activity, and does not block.

        Specified by:
        isConnected in interface TagTechnology
        Returns:
        true if I/O operations should be possible


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 10323 / 248537307. Delta: 0.14186 с