public class Handset extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BATTERY_LOW_MODE
Device property [Battery Levels].
|
static int |
BATTERY_OPERATIONAL_MODE
Device property [Battery levels].
|
static int |
BATTERY_POWER_OFF_MODE
Device property [Battery levels].
|
static int |
FELICA
Device property [NFC Technologies].
|
static int |
HCI_SWP
Device property [Contactless Frontend].
|
static int |
MIFARE_CLASSIC
Device property [NFC Technologies].
|
static int |
MIFARE_DESFIRE
Device property [NFC Technologies].
|
static int |
MULTIPLE_ACTIVE_CEE
Device property [Contactless Frontend].
|
static int |
NFC_FORUM_TYPE3
Device property [NFC Technologies].
|
static int |
OMAPI
Device property [Framework components].
|
Constructor and Description |
---|
Handset() |
Modifier and Type | Method and Description |
---|---|
void |
enableMultiEvt_transactionReception()
Asks the system to inform "transaction events" to any authorized/registered components via
BroadcastReceiver .Change SHALL not imply a power cycle and SHALL be valid until next handset reboot. Applications SHALL register to com.gsma.services.nfc.TRANSACTION_EVENT for receiving related events. |
List<String> |
getAvailableSecureElements(int batteryLevel)
Return the list of Secure Elements which can be used by the NFC Controller
when handset is operating in a following battery level: BATTERY_LOW_MODE
BATTERY_POWER_OFF_MODE
BATTERY_OPERATIONAL_MODE |
boolean |
getProperty(int feature)
Return handset status for the following features:
HCI_SWP , MULTIPLE_ACTIVE_CEE
FELICA , MIFARE_CLASSIC , MIFARE_DESFIRE ,
NFC_FORUM_TYPE3
OMAPI
BATTERY_LOW_MODE , BATTERY_POWER_OFF_MODE |
int |
getVersion()
Return the version of device requirements supported.
|
public static final int HCI_SWP
public static final int MULTIPLE_ACTIVE_CEE
public static final int FELICA
public static final int MIFARE_CLASSIC
public static final int MIFARE_DESFIRE
public static final int NFC_FORUM_TYPE3
public static final int OMAPI
public static final int BATTERY_LOW_MODE
public static final int BATTERY_POWER_OFF_MODE
public static final int BATTERY_OPERATIONAL_MODE
public int getVersion()
public boolean getProperty(int feature)
feature
- Requested featuretrue
if the feature is supported; false
otherwiseIllegalArgumentException
- Method is invoked with null
or an illegal argument.public List<String> getAvailableSecureElements(int batteryLevel)
batteryLevel
- Battery level the handset is operatingCollections.emptyList()
if none of them are supportedpublic void enableMultiEvt_transactionReception()
BroadcastReceiver
.com.gsma.services.nfc.TRANSACTION_EVENT
for receiving related events.SecurityException
- Only applications signed with a trusted certificate may call this API.