public final class SEService extends Object
After that, you can send APDU commands to secure elements.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static interface |
SEService.OnCallback |
A callback interface used to notify your application of a successful connection to the secure element service.
|
| 构造器 | 说明 |
|---|---|
SEService(Context context,
SEService.OnCallback callback) |
A constructor used to create a
SEService instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Reader[] |
getReaders() |
Obtains all secure elements.
|
String |
getVersion() |
Obtains the version of the secure element service.
|
boolean |
isConnected() |
Checks whether the secure element service is connected.
|
void |
shutdown() |
Disables the secure element service.
|
public SEService(Context context, SEService.OnCallback callback) throws IllegalArgumentException
SEService instance.context - Indicates the application context.callback - Indicates the interface that is called back when the secure element service is connected.IllegalArgumentException - if the required context of the caller is missing.public boolean isConnected()
true if the service is connected; returns false otherwise.public void shutdown()
This method also disables all sessions and channels of the service.
public Reader[] getReaders()
public String getVersion()