Grabba Driver for Android
Unified driver for Grabba devices on the Android operating system
MagstripeInterface Interface Reference

Description

Interface class for Grabba magstripe reader events.

Objects which implement this interface may receive callbacks when these events occur, via delegation from a MagstripeListener object.

Note that this interface need not be directly implemented; it may be simpler to subclass MagstripeListener and thereby receive the events directly.

Thread safety: This interface is intended to be thread-safe; any classes deriving from it should ensure that the relevant methods are callable from any thread.

See also
MagstripeAPI for related API functions, and MagstripeListener for more detailed descriptions of each event.
Inheritance diagram for MagstripeInterface:
MagstripeListener

Public Member Functions

void dataEvent (@NonNull MagstripeData data)
 Callback which is invoked when one or more tracks are successfully read from a magstripe card. More...
 

Member Function Documentation

◆ dataEvent()

void dataEvent ( @NonNull MagstripeData  data)

Callback which is invoked when one or more tracks are successfully read from a magstripe card.

Note
Implementations of this method are required to be thread-safe; no guarantees are made about which thread(s) they will be called from.
Parameters
dataContains the data which was read from the magnetic stripe; see MagstripeData for details

Implemented in MagstripeListener.