CardEmulation.INfcEventCallback.OnAidConflictOccurred(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This method is called when an AID conflict is detected during an NFC transaction.
[Android.Runtime.Register("onAidConflictOccurred", "(Ljava/lang/String;)V", "GetOnAidConflictOccurred_Ljava_lang_String_Handler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual void OnAidConflictOccurred(string aid);
[<Android.Runtime.Register("onAidConflictOccurred", "(Ljava/lang/String;)V", "GetOnAidConflictOccurred_Ljava_lang_String_Handler:Android.Nfc.CardEmulators.CardEmulation/INfcEventCallback, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member OnAidConflictOccurred : string -> unit
override this.OnAidConflictOccurred : string -> unit
Parameters
- aid
- String
The AID that is in conflict. This value cannot be null.
- Attributes
Remarks
This method is called when an AID conflict is detected during an NFC transaction. This can happen when multiple services are registered for the same AID. If your service is registered for this AID you may want to instruct users to bring your app to the foreground and ensure you call setPreferredService(Activity,ComponentName) to ensure the transaction is routed to your service.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.