Class Spark2

  • All Implemented Interfaces:
    android.nfc.tech.TagTechnology, Closeable, AutoCloseable

    public class Spark2
    extends Object
    implements android.nfc.tech.TagTechnology
    Wrapper class for a IsoDep or DummyTag Spark 2/Apex tag. Final class is the reason. Also implements TagTechnology, because of course we do!
    • Constructor Detail

      • Spark2

        public Spark2​(android.nfc.tech.IsoDep tagtech)
        IsoDep constructor
        Parameters:
        tagtech - an IsoDep tag.
      • Spark2

        public Spark2​(com.vivokey.dummytag.DummyTag tagtech)
        NTAG413DummyTag constructor
        Parameters:
        tagtech - a NTAG413DummyTag tag.
    • Method Detail

      • getTag

        public android.nfc.Tag getTag()
        Specified by:
        getTag in interface android.nfc.tech.TagTechnology
      • connect

        public void connect()
                     throws IOException
        Specified by:
        connect in interface android.nfc.tech.TagTechnology
        Throws:
        IOException
      • isConnected

        public boolean isConnected()
        Specified by:
        isConnected in interface android.nfc.tech.TagTechnology