Class NfcCtrl

java.lang.Object
com.unitech.api.nfc.NfcCtrl

public class NfcCtrl extends Object
The type Nfc ctrl.
  • Field Details

  • Constructor Details

    • NfcCtrl

      public NfcCtrl(android.content.Context context)
      Instantiates a new Nfc ctrl.
      Parameters:
      context - the context
  • Method Details

    • setNfcAdapter

      public android.os.Bundle setNfcAdapter(boolean enabled)
      Set nfc adapter
      Parameters:
      enabled - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");