Card API

Request that the device scan the card.

int scanCard()

Return Code

Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.

The API will return immediately upon starting the card scanning service and, if a card scan is detected, the data will be passed on to the DeviceListner::onCardScanCompleted callback listener.
The card scan progress can be checked via DeviceListner::onCardScanProgress.


Request that the device stop scanning the card.

int cancelScanCard()

Return Code

Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.


Pause the device's card service.

int pauseCardService()

Return Code

Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.


Resume the device's card service.

int resumeCardService()

Return Code

Returns “SUCCESS” if successfully launched; returns the corresponding error code if an error occurs.