IT. Expert System.

Android Reference

NfcV


android.nfc.tech

Class NfcV

    • Method Detail

      • get

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

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

        Does not cause any RF activity and does not block.

        Parameters:
        tag - an NFC-V compatible tag
        Returns:
        NFC-V object
      • getResponseFlags

        public byte getResponseFlags()
        Return the Response Flag bytes from tag discovery.

        Does not cause any RF activity and does not block.

        Returns:
        Response Flag bytes
      • getDsfId

        public byte getDsfId()
        Return the DSF ID bytes from tag discovery.

        Does not cause any RF activity and does not block.

        Returns:
        DSF ID bytes
      • transceive

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

        Applications must not append the CRC to the payload, it will be automatically calculated. The application does provide FLAGS, CMD and PARAMETER bytes.

        Use getMaxTransceiveLength() to retrieve the maximum amount 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: 10457 / 248537441. Delta: 0.03146 с