Class Card

java.lang.Object
app.akiles.sdk.Card

public final class Card extends Object
Card scanned with Akiles.scanCard(Callback)

All methods in this class do not block, so it's OK to call them from the UI thread. Methods that don't do IO complete instantly, methods that do use a callback to notify completion or error.

The callbacks can be called from any thread, you must not assume they're called from the UI thread nor the thread you initially called the method from.

  • Method Details

    • getUid

      public byte[] getUid()
      Return the UID of the card.
      Returns:
      The UID.
    • isAkilesCard

      public boolean isAkilesCard()
      Check if it's an Akiles card.
      Returns:
      true if it's an Akiles card, false if otherwise.
    • update

      public void update(Callback<Void> callback)
      Update the data on the card with the Akiles server.
      Parameters:
      callback - Callback called on completion or error.
    • close

      public void close()
      Close the connection to the card.