Android.Nfc.CardEmulators.HostApduService.ProcessCommandApdu Method

Syntax

[Android.Runtime.Register("processCommandApdu", "([BLandroid/os/Bundle;)[B", "GetProcessCommandApdu_arrayBLandroid_os_Bundle_Handler")]
public abstract byte[] ProcessCommandApdu (byte[] commandApdu, Android.OS.Bundle extras)

Parameters

commandApdu
The APDU that was received from the remote device
extras
A bundle containing extra data. May be null.

Returns

Documentation for this section has not yet been entered.

Remarks

This method will be called when a command APDU has been received from a remote device. A response APDU can be provided directly by returning a byte-array in this method. Note that in general response APDUs must be sent as quickly as possible, given the fact that the user is likely holding his device over an NFC reader when this method is called.

If there are multiple services that have registered for the same AIDs in their meta-data entry, you will only get called if the user has explicitly selected your service, either as a default or just for the next tap.

This method is running on the main thread of your application. If you cannot return a response APDU immediately, return null and use the HostApduService.SendResponseApdu(Byte[]) method later.

[Android Documentation]

Requirements

Namespace: Android.Nfc.CardEmulators
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0