diff options
Diffstat (limited to 'core/java/android/nfc/tech/NfcA.java')
-rw-r--r-- | core/java/android/nfc/tech/NfcA.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/nfc/tech/NfcA.java b/core/java/android/nfc/tech/NfcA.java index bd1f95a..bb8aec9 100644 --- a/core/java/android/nfc/tech/NfcA.java +++ b/core/java/android/nfc/tech/NfcA.java @@ -102,6 +102,9 @@ public final class NfcA extends BasicTagTechnology { * for example a SENS_REQ is not possible (these are used to * manage tag polling and initialization). * + * <p>Use {@link #getMaxTransceiveLength} to retrieve the maximum number of bytes + * that can be sent with {@link #transceive}. + * * <p>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 * {@link IOException} if {@link #close} is called from another thread. @@ -118,6 +121,14 @@ public final class NfcA extends BasicTagTechnology { } /** + * Return the maximum number of bytes that can be sent with {@link #transceive}. + * @return the maximum number of bytes that can be sent with {@link #transceive}. + */ + public int getMaxTransceiveLength() { + return getMaxTransceiveLengthInternal(); + } + + /** * Set the timeout of {@link #transceive} in milliseconds. * <p>The timeout only applies to NfcA {@link #transceive}, and is * reset to a default value when {@link #close} is called. |