public static interface NfcController.Callbacks
NfcController
class.Modifier and Type | Field and Description |
---|---|
static int |
CARD_EMULATION_DISABLED
Card Emulation mode has been disabled.
|
static int |
CARD_EMULATION_ENABLED
Card Emulation mode has been enabled.
|
static int |
CARD_EMULATION_ERROR
An error occurred when handset tried to enable/disable Card Emulation mode.
|
Modifier and Type | Method and Description |
---|---|
void |
onCardEmulationMode(int status)
Deprecated.
When NFC controller supports HCE and Application ID (AID) routing
|
void |
onEnableNfcController(boolean success)
Called when process for enabling the NFC Controller is finished.
|
void |
onGetDefaultController(NfcController controller)
Called when process for getting the default Controller is finished.
|
static final int CARD_EMULATION_DISABLED
static final int CARD_EMULATION_ENABLED
static final int CARD_EMULATION_ERROR
void onGetDefaultController(NfcController controller)
controller
- Instance of default controller or null
if an error occurredvoid onEnableNfcController(boolean success)
success
- true
if the NFC adapter is enabled; false
otherwisevoid onCardEmulationMode(int status)
status
- Status of the Card Emulation mode as defined belowCARD_EMULATION_DISABLED
, CARD_EMULATION_ENABLED
,
CARD_EMULATION_ERROR