GKCard.AbortResponse, GKCard.ConnectionState, GKCard.Monitor, GKCard.Response| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Constructor and Description |
|---|
GKBluetoothCard(java.lang.String cardName,
java.io.File dataCacheDir)
Create a
GKBluetoothCard to connect with the GateKeeper Card having the
given name. |
| Modifier and Type | Method and Description |
|---|---|
void |
addMonitor(GKCard.Monitor monitor)
Add a
Monitor to be informed about changes to the state of the GateKeeper Card. |
void |
connect()
Open a connection with the GateKeeper Card.
|
GKCard.Response |
createPath(java.lang.String cardPath)
Send a `createPath` action to the GateKeeper Card.
|
GKCard.Response |
delete(java.lang.String cardPath)
Send a `delete` action to the GateKeeper Card.
|
GKCard.Response |
deletePath(java.lang.String cardPath)
Send a `deletePath` action to the GateKeeper Card.
|
void |
disconnect()
Close the connection with the GateKeeper Card.
|
GKCard.Response |
finalize(java.lang.String cardPath)
Send a `finalize` action to the GateKeeper Card.
|
GKCard.Response |
get(java.lang.String cardPath)
Send a `get` action to the GateKeeper Card.
|
GKCard.Response |
get(java.lang.String cardPath,
java.io.File localFile)
Send a `get` action to the GateKeeper Card.
|
GKCard.ConnectionState |
getConnectionState()
Get the current state of the connection between this object and the GateKeeper Card.
|
GKCard.Response |
list(java.lang.String cardPath)
Send a `list` action to the GateKeeper Card.
|
void |
onConnectionChanged(GKCard.ConnectionState state)
Intended for internal use only.
|
GKCard.Response |
put(java.lang.String cardPath,
java.io.InputStream inputStream)
Send a `put` action to the GateKeeper Card.
|
void |
removeMonitor(GKCard.Monitor monitor)
Remove a
Monitor from the GKCard. |
GKCard.Response |
rename(java.lang.String fromCardPath,
java.lang.String toCardPath)
Send a `rename` action to the GateKeeper Card.
|
public GKBluetoothCard(java.lang.String cardName,
java.io.File dataCacheDir)
GKBluetoothCard to connect with the GateKeeper Card having the
given name.cardName - the Bluetooth pairing name of the GateKeeper CarddataCacheDir - a File that contains the location to create temporary files to store response data.
Ex: context.getExternalCacheDir()public GKCard.Response list(java.lang.String cardPath) throws java.io.IOException
GKCardpublic GKCard.Response get(java.lang.String cardPath) throws java.io.IOException
GKCardpublic GKCard.Response get(java.lang.String cardPath, java.io.File localFile) throws java.io.IOException
GKCardpublic GKCard.Response put(java.lang.String cardPath, java.io.InputStream inputStream) throws java.io.IOException
GKCardpublic GKCard.Response rename(java.lang.String fromCardPath, java.lang.String toCardPath) throws java.io.IOException
GKCardpublic GKCard.Response delete(java.lang.String cardPath) throws java.io.IOException
GKCardpublic GKCard.Response createPath(java.lang.String cardPath) throws java.io.IOException
GKCardcreatePath in interface GKCardcardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKCard.Response deletePath(java.lang.String cardPath) throws java.io.IOException
GKCarddeletePath in interface GKCardcardPath - the path used in the actionResponse with information about the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKCard.Response finalize(java.lang.String cardPath) throws java.io.IOException
GKCardpublic void connect()
throws java.io.IOException
GKCardpublic void disconnect()
throws java.io.IOException
GKCarddisconnect in interface GKCardjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKCard.ConnectionState getConnectionState()
GKCardgetConnectionState in interface GKCardConnectionState between this object and the
GateKeeper Card.public void onConnectionChanged(GKCard.ConnectionState state)
GKCardonConnectionChanged in interface GKCardstate - the ConnectionState that describes the new state of the connectionpublic void addMonitor(GKCard.Monitor monitor)
GKCardMonitor to be informed about changes to the state of the GateKeeper Card.addMonitor in interface GKCardmonitor - the Monitor to be addedpublic void removeMonitor(GKCard.Monitor monitor)
GKCardMonitor from the GKCard.removeMonitor in interface GKCardmonitor - the Monitor to be removed