Partager via


HostApduService.OnDeactivated(DeactivationReason) Method

Definition

This method will be called in two possible scenarios: <li>The NFC link has been deactivated or lost <li>A different AID has been selected and was resolved to a different service component

[Android.Runtime.Register("onDeactivated", "(I)V", "GetOnDeactivated_IHandler")]
public abstract void OnDeactivated (Android.Nfc.CardEmulators.DeactivationReason reason);
[<Android.Runtime.Register("onDeactivated", "(I)V", "GetOnDeactivated_IHandler")>]
abstract member OnDeactivated : Android.Nfc.CardEmulators.DeactivationReason -> unit

Parameters

reason
DeactivationReason

Either #DEACTIVATION_LINK_LOSS or #DEACTIVATION_DESELECTED

Attributes

Remarks

This method will be called in two possible scenarios: <li>The NFC link has been deactivated or lost <li>A different AID has been selected and was resolved to a different service component

Java documentation for android.nfc.cardemulation.HostApduService.onDeactivated(int).

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.

Applies to