SmartCardEmulatorApduReceivedEventArgs SmartCardEmulatorApduReceivedEventArgs SmartCardEmulatorApduReceivedEventArgs SmartCardEmulatorApduReceivedEventArgs Class

Definition

Provides data for the ApduReceived event.

public : sealed class SmartCardEmulatorApduReceivedEventArgs : ISmartCardEmulatorApduReceivedEventArgs, ISmartCardEmulatorApduReceivedEventArgs2, ISmartCardEmulatorApduReceivedEventArgsWithCryptogramspublic sealed class SmartCardEmulatorApduReceivedEventArgs : ISmartCardEmulatorApduReceivedEventArgs, ISmartCardEmulatorApduReceivedEventArgs2, ISmartCardEmulatorApduReceivedEventArgsWithCryptogramsPublic NotInheritable Class SmartCardEmulatorApduReceivedEventArgs Implements ISmartCardEmulatorApduReceivedEventArgs, ISmartCardEmulatorApduReceivedEventArgs2, ISmartCardEmulatorApduReceivedEventArgsWithCryptograms// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced v1)

Remarks

The system generates an instance of this class and passes it as an argument to the application's ApduReceived event handler.

Properties

AutomaticResponseStatus AutomaticResponseStatus AutomaticResponseStatus AutomaticResponseStatus

Gets a SmartCardAutomaticResponseStatus object indicating the automatic response was already successfully sent (Success), attempted but failed (UnknownError), or was not matched with any auto-responder rule (None).

public : SmartCardAutomaticResponseStatus AutomaticResponseStatus { get; }public SmartCardAutomaticResponseStatus AutomaticResponseStatus { get; }Public ReadOnly Property AutomaticResponseStatus As SmartCardAutomaticResponseStatus// You can use this property in JavaScript.
See Also

CommandApdu CommandApdu CommandApdu CommandApdu

Represents an application protocol data unit (APDU) command sent by an NFC reader.

public : IBuffer CommandApdu { get; }public IBuffer CommandApdu { get; }Public ReadOnly Property CommandApdu As IBuffer// You can use this property in JavaScript.
Value
IBuffer IBuffer IBuffer IBuffer

An application protocol data unit (APDU) command sent by an NFC reader.

See Also

ConnectionProperties ConnectionProperties ConnectionProperties ConnectionProperties

Gets the connection properties of the smart card emulator.

public : SmartCardEmulatorConnectionProperties ConnectionProperties { get; }public SmartCardEmulatorConnectionProperties ConnectionProperties { get; }Public ReadOnly Property ConnectionProperties As SmartCardEmulatorConnectionProperties// You can use this property in JavaScript.
See Also

State State State State

Gets the state.

public : unsigned int State { get; }public uint State { get; }Public ReadOnly Property State As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The state.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10586.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced v2)
See Also

Methods

TryRespondAsync(IBuffer) TryRespondAsync(IBuffer) TryRespondAsync(IBuffer) TryRespondAsync(IBuffer)

Attempts to respond to an APDU.

public : IAsyncOperation<PlatForm::Boolean> TryRespondAsync(IBuffer responseApdu)public IAsyncOperation<bool> TryRespondAsync(IBuffer responseApdu)Public Function TryRespondAsync(responseApdu As IBuffer) As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Parameters
responseApdu
IBuffer IBuffer IBuffer IBuffer

A buffer containing the response.

Returns

Returns an asynchronous operation that returns a boolean when the operation completes indicating. The boolean will be true if the operation was successful and false otherwise.

See Also

TryRespondAsync(IBuffer, IReference) TryRespondAsync(IBuffer, IReference) TryRespondAsync(IBuffer, IReference) TryRespondAsync(IBuffer, IReference)

Attempts to respond to an APDU.

public : IAsyncOperation<PlatForm::Boolean> TryRespondAsync(IBuffer responseApdu, IReference<unsigned int> nextState)public IAsyncOperation<bool> TryRespondAsync(IBuffer responseApdu, Nullable<UInt32> nextState)Public Function TryRespondAsync(responseApdu As IBuffer, nextState As Nullable<UInt32>) As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Parameters
responseApdu
IBuffer IBuffer IBuffer IBuffer

A buffer containing the response.

nextState
IReference<unsigned int> Nullable<UInt32> Nullable<UInt32> Nullable<UInt32>

A reference containing the next state.

Returns

Returns an asynchronous operation that returns a boolean when the operation completes. The boolean is true if the operation completed successfully and false otherwise.

Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10586.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced v2)
See Also

TryRespondWithCryptogramsAsync(IBuffer, IIterable) TryRespondWithCryptogramsAsync(IBuffer, IIterable) TryRespondWithCryptogramsAsync(IBuffer, IIterable) TryRespondWithCryptogramsAsync(IBuffer, IIterable)

Attempts to respond to an APDU, placing cryptograms in the outgoing message as instructed by the placement steps.

public : IAsyncOperation<SmartCardCryptogramGeneratorOperationStatus> TryRespondWithCryptogramsAsync(IBuffer responseTemplate, IIterable<SmartCardCryptogramPlacementStep> cryptogramPlacementSteps)public IAsyncOperation<SmartCardCryptogramGeneratorOperationStatus> TryRespondWithCryptogramsAsync(IBuffer responseTemplate, IEnumerable<SmartCardCryptogramPlacementStep> cryptogramPlacementSteps)Public Function TryRespondWithCryptogramsAsync(responseTemplate As IBuffer, cryptogramPlacementSteps As IEnumerable<SmartCardCryptogramPlacementStep>) As IAsyncOperation( Of SmartCardCryptogramGeneratorOperationStatus )// You can use this method in JavaScript.
Parameters
responseTemplate
IBuffer IBuffer IBuffer IBuffer

A buffer containing a template response.

cryptogramPlacementSteps
IIterable<SmartCardCryptogramPlacementStep> IEnumerable<SmartCardCryptogramPlacementStep> IEnumerable<SmartCardCryptogramPlacementStep> IEnumerable<SmartCardCryptogramPlacementStep>

A collection that contains the cryptogram steps.

Returns
Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10586.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced v2)
See Also

TryRespondWithCryptogramsAsync(IBuffer, IIterable, IReference) TryRespondWithCryptogramsAsync(IBuffer, IIterable, IReference) TryRespondWithCryptogramsAsync(IBuffer, IIterable, IReference) TryRespondWithCryptogramsAsync(IBuffer, IIterable, IReference)

Returns an asynchronous operation that completes with an operation status.

public : IAsyncOperation<SmartCardCryptogramGeneratorOperationStatus> TryRespondWithCryptogramsAsync(IBuffer responseTemplate, IIterable<SmartCardCryptogramPlacementStep> cryptogramPlacementSteps, IReference<unsigned int> nextState)public IAsyncOperation<SmartCardCryptogramGeneratorOperationStatus> TryRespondWithCryptogramsAsync(IBuffer responseTemplate, IEnumerable<SmartCardCryptogramPlacementStep> cryptogramPlacementSteps, Nullable<UInt32> nextState)Public Function TryRespondWithCryptogramsAsync(responseTemplate As IBuffer, cryptogramPlacementSteps As IEnumerable<SmartCardCryptogramPlacementStep>, nextState As Nullable<UInt32>) As IAsyncOperation( Of SmartCardCryptogramGeneratorOperationStatus )// You can use this method in JavaScript.
Parameters
responseTemplate
IBuffer IBuffer IBuffer IBuffer

A buffer that contains a template response.

cryptogramPlacementSteps
IIterable<SmartCardCryptogramPlacementStep> IEnumerable<SmartCardCryptogramPlacementStep> IEnumerable<SmartCardCryptogramPlacementStep> IEnumerable<SmartCardCryptogramPlacementStep>

A collection that contains the cryptogram steps.

nextState
IReference<unsigned int> Nullable<UInt32> Nullable<UInt32> Nullable<UInt32>

A reference that contains the next state.

Returns
Additional features and requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10586.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced v2)
See Also

See Also