Class NfcCtrl


  • public class NfcCtrl
    extends java.lang.Object
    The type Nfc ctrl.
    • Constructor Summary

      Constructors 
      Constructor Description
      NfcCtrl​(android.content.Context context)
      Instantiates a new Nfc ctrl.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.os.Bundle setNfcAdapter​(boolean enabled)
      Set nfc adapter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NfcCtrl

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

      • 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 erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");