Provides access to Grabba magnetic stripe (magstripe) reader functionality.
This API provides access to magstripe reader functions. Note, however, that magstripe reading is triggered by the scanner itself (not the driver), so this API is quite small.
Callbacks to user-provided code may be triggered in response to relevant events, e.g. successful scan of a magstripe card. Refer to the MagstripeListener class for the details of these callbacks and how to enable them.
Calls to this class will not succeed until a connection to a Grabba device has been established. Refer to the CoreAPI class for details of how to establish or query this connection.
Thread safety: Everything in this class is fully thread-safe.
Static Public Member Functions | |
static boolean | supported () |
Query whether there is currently a connected Grabba device with magstripe functionality. More... | |
|
static |
Query whether there is currently a connected Grabba device with magstripe functionality.
This is a non-blocking call; device capabilities are cached internally by the driver.