Grabba Driver for Android
Unified driver for Grabba devices on the Android operating system
MagstripeAPI Class Reference

Description

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.

Note
This class has no non-static methods or data; consequently, object creation is disabled.

Static Public Member Functions

static boolean supported ()
 Query whether there is currently a connected Grabba device with magstripe functionality. More...
 

Member Function Documentation

◆ supported()

static boolean supported ( )
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.

Returns
True if there is a connected Grabba device and that device supports magstripe functionality; false otherwise.