ClaimedMagneticStripeReader.Closed ClaimedMagneticStripeReader.Closed ClaimedMagneticStripeReader.Closed ClaimedMagneticStripeReader.Closed ClaimedMagneticStripeReader.Closed Event

Definition

Event that is raised when the ClaimedMagneticStripeReader is closed.

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

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

// Revoke with event_revoker
Closed_revoker Closed(auto_revoke_t, TypedEventHandler<ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs> const& handler) const;
public event TypedEventHandler<ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs> Closed
Public Event Closed As TypedEventHandler (Of ClaimedMagneticStripeReader, ClaimedMagneticStripeReaderClosedEventArgs)
function onClosed(eventArgs){/* Your code */}


claimedMagneticStripeReader.addEventListener("closed", onClosed);
claimedMagneticStripeReader.removeEventListener("closed", onClosed);

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.

See also