public class SEService
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SEService.CallBack
Interface to receive call-backs when the service is connected.
|
| Constructor and Description |
|---|
SEService(Context context,
SEService.CallBack listener)
Establishes a new connection that can be used to connect to all the
Secure Elements available in the system.
|
| Modifier and Type | Method and Description |
|---|---|
Reader[] |
getReaders()
Returns the list of available Secure Element readers.
|
java.lang.String |
getVersion()
Returns the version of the OpenMobile API specification this
implementation is based on.
|
boolean |
isConnected()
Tells whether or not the service is connected.
|
void |
shutdown()
Releases all Secure Elements resources allocated by this SEService
(including any binding to an underlying service).
|
public SEService(Context context,
SEService.CallBack listener)
true. context - the context of the calling application. Cannot be
null.listener - a SEService.CallBack object. Can be null.public boolean isConnected()
true if the service is connected.public Reader[] getReaders() throws java.lang.IllegalStateException, java.lang.NullPointerException
java.lang.NullPointerException - if context is NULLjava.lang.IllegalStateException - if the SEService object is not connectedpublic void shutdown()
public java.lang.String getVersion()
SEEK for Android Copyright 2015, Giesecke & Devrient GmbH