Class Spark1

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

    public class Spark1
    extends Object
    implements android.nfc.tech.TagTechnology
    Wrapper class for a NfcV or Spark1DummyTag Spark 1 tag. NfcV being final made this a thing. Also implements TagTechnology, because of course we do!
    • Constructor Detail

      • Spark1

        public Spark1​(android.nfc.tech.NfcV tagtech)
        NfcV constructor
        Parameters:
        tagtech - a NfcV tag.
      • Spark1

        public Spark1​(com.vivokey.dummytag.DummyTag tagtech)
        Spark1DummyTag constructor
        Parameters:
        tagtech - a Spark1DummyTag 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