Package com.unitech.api.nfc
Class NfcCtrl
java.lang.Object
com.unitech.api.nfc.NfcCtrl
The type Nfc ctrl.
-
Field Details
-
BUNDLE_ERROR_CODE
- See Also:
-
BUNDLE_ERROR_MSG
- See Also:
-
RESULT_CODE_ERROR
public static final int RESULT_CODE_ERROR- See Also:
-
RESULT_CODE_SUCCESS
public static final int RESULT_CODE_SUCCESS- See Also:
-
-
Constructor Details
-
NfcCtrl
public NfcCtrl(Context context) Instantiates a new Nfc ctrl.- Parameters:
context- the context
-
-
Method Details
-
setNfcAdapter
public 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");
-