Share via


ClaimedMagneticStripeReader.Closed Event

Definition

Event that is raised when the ClaimedMagneticStripeReader is closed.

// Register
event_token Closed(TypedEventHandler<ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs const&> const& handler) const;

// Revoke with event_token
void Closed(event_token const* cookie) const;

// Revoke with event_revoker
ClaimedMagneticStripeReader::Closed_revoker Closed(auto_revoke_t, TypedEventHandler<ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs const&> const& handler) const;
public event TypedEventHandler<ClaimedMagneticStripeReader,ClaimedMagneticStripeReaderClosedEventArgs> Closed;
function onClosed(eventArgs) { /* Your code */ }
claimedMagneticStripeReader.addEventListener("closed", onClosed);
claimedMagneticStripeReader.removeEventListener("closed", onClosed);
- or -
claimedMagneticStripeReader.onclosed = onClosed;
Public Custom Event Closed As TypedEventHandler(Of ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs) 

Event Type

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

When an app is suspended, all ClaimedMagneticStripeReader objects are closed. This event can be useful to determine when magnetic stripe reader connections need to be re-established.

Applies to

See also