Click or drag to resize

MagCardReaderRead Method

Activates the device's magnetic card reader, if present, and waits for a card to be swiped.

Namespace:  Zebra.Sdk.Device
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1989
Syntax
string[] Read(
	int timeoutMS
)

Parameters

timeoutMS
Type: SystemInt32
The amount of time in milliseconds to enable the reader and wait for a card to be swiped.

Return Value

Type: String
An array of three strings corresponding to the tracks of the card. If a track could not be read that string will be empty.
Remarks
If the device does not have a reader the call will timeout.
See Also