ClaimedMagneticStripeReader ClaimedMagneticStripeReader ClaimedMagneticStripeReader ClaimedMagneticStripeReader ClaimedMagneticStripeReader Class

Definition

Represents the claimed magnetic stripe reader.

public : sealed class ClaimedMagneticStripeReader : IClosable
struct winrt::Windows::Devices::PointOfService::ClaimedMagneticStripeReader : IClosable
public sealed class ClaimedMagneticStripeReader : IDisposable
Public NotInheritable Class ClaimedMagneticStripeReader Implements IDisposable
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This object is created when ClaimReaderAsync method completes.

Version history

Windows version SDK version Value added
1809 17763 Closed

Properties

DataEncryptionAlgorithm DataEncryptionAlgorithm DataEncryptionAlgorithm DataEncryptionAlgorithm DataEncryptionAlgorithm

Gets or sets the MagneticStripeReaderEncryptionAlgorithms that will be used to encrypt the track data.

DeviceId DeviceId DeviceId DeviceId DeviceId

Gets the DeviceInformation.Id of the claimed magnetic stripe reader.

IsDecodeDataEnabled IsDecodeDataEnabled IsDecodeDataEnabled IsDecodeDataEnabled IsDecodeDataEnabled

Indicates whether to provide raw or decoded data from the most recently swiped card.

IsDeviceAuthenticated IsDeviceAuthenticated IsDeviceAuthenticated IsDeviceAuthenticated IsDeviceAuthenticated

Indicates whether the device is authenticated.

IsDisabledOnDataReceived IsDisabledOnDataReceived IsDisabledOnDataReceived IsDisabledOnDataReceived IsDisabledOnDataReceived

Gets or sets a Boolean value that indicates whether the magnetic stripe reader is disabled after receiving the data from the most recently swiped card.

IsEnabled IsEnabled IsEnabled IsEnabled IsEnabled

Indicates whether the magnetic stripe reader is ready to receive data events.

IsTransmitSentinelsEnabled IsTransmitSentinelsEnabled IsTransmitSentinelsEnabled IsTransmitSentinelsEnabled IsTransmitSentinelsEnabled

Indicates whether the track data contains start and end sentinel values.

TracksToRead TracksToRead TracksToRead TracksToRead TracksToRead

Gets or sets the track data that the application wants to receive following a card swipe.

Methods

AuthenticateDeviceAsync(Byte[]) AuthenticateDeviceAsync(Byte[]) AuthenticateDeviceAsync(Byte[]) AuthenticateDeviceAsync(Byte[]) AuthenticateDeviceAsync(Byte[])

Puts the device into an authenticated state.

Close() Close() Close() Close() Close()

Releases the exclusive claim to the magnetic strip reader.

DeAuthenticateDeviceAsync(Byte[]) DeAuthenticateDeviceAsync(Byte[]) DeAuthenticateDeviceAsync(Byte[]) DeAuthenticateDeviceAsync(Byte[]) DeAuthenticateDeviceAsync(Byte[])

Puts the device into an unauthenticated state.

DisableAsync() DisableAsync() DisableAsync() DisableAsync() DisableAsync()

Puts the ClaimedMagneticStripeReader into a state where it cannot receive data events.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EnableAsync() EnableAsync() EnableAsync() EnableAsync() EnableAsync()

Gets the magnetic stripe reader into a ready state to receive data events.

ResetStatisticsAsync(IIterable<String>) ResetStatisticsAsync(IIterable<String>) ResetStatisticsAsync(IIterable<String>) ResetStatisticsAsync(IIterable<String>) ResetStatisticsAsync(IIterable<String>)

Resets the specified statistics to zero for all statistics that can be reset.

RetainDevice() RetainDevice() RetainDevice() RetainDevice() RetainDevice()

Retains exclusive claim to the magnetic stripe reader.

RetrieveDeviceAuthenticationDataAsync() RetrieveDeviceAuthenticationDataAsync() RetrieveDeviceAuthenticationDataAsync() RetrieveDeviceAuthenticationDataAsync() RetrieveDeviceAuthenticationDataAsync()

Retrieves a challenge token from the device.

SetErrorReportingType(MagneticStripeReaderErrorReportingType) SetErrorReportingType(MagneticStripeReaderErrorReportingType) SetErrorReportingType(MagneticStripeReaderErrorReportingType) SetErrorReportingType(MagneticStripeReaderErrorReportingType) SetErrorReportingType(MagneticStripeReaderErrorReportingType)

Sets the type of error to report by the ErrorOccurred event.

UpdateKeyAsync(String, String) UpdateKeyAsync(String, String) UpdateKeyAsync(String, String) UpdateKeyAsync(String, String) UpdateKeyAsync(String, String)

Provides a new encryption key to the device.

UpdateStatisticsAsync(IIterable<IKeyValuePair<String, String>>) UpdateStatisticsAsync(IIterable<IKeyValuePair<String, String>>) UpdateStatisticsAsync(IIterable<IKeyValuePair<String, String>>) UpdateStatisticsAsync(IIterable<IKeyValuePair<String, String>>) UpdateStatisticsAsync(IIterable<IKeyValuePair<String, String>>)

Updates the specified statistics.

Events

AamvaCardDataReceived AamvaCardDataReceived AamvaCardDataReceived AamvaCardDataReceived AamvaCardDataReceived

Occurs when a motor vehicle card is swiped.

BankCardDataReceived BankCardDataReceived BankCardDataReceived BankCardDataReceived BankCardDataReceived

Occurs when a bank card is swiped.

Closed Closed Closed Closed Closed

Event that is raised when the ClaimedMagneticStripeReader is closed.

ErrorOccurred ErrorOccurred ErrorOccurred ErrorOccurred ErrorOccurred

Occurs when the magnetic stripe reader detects an error when reading a card.

ReleaseDeviceRequested ReleaseDeviceRequested ReleaseDeviceRequested ReleaseDeviceRequested ReleaseDeviceRequested

Occurs when the device gets a request to release its exclusive claim.

VendorSpecificDataReceived VendorSpecificDataReceived VendorSpecificDataReceived VendorSpecificDataReceived VendorSpecificDataReceived

Occurs when a vendor-specific card is swiped.

See also