CardEmulation.DefaultNfcSubscriptionId Property

Definition

Returns the system's default NFC subscription id.

public int DefaultNfcSubscriptionId { [Android.Runtime.Register("getDefaultNfcSubscriptionId", "()I", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("getDefaultNfcSubscriptionId", "()I", "", ApiSince=36)>]
member this.DefaultNfcSubscriptionId : int

Property Value

the default NFC subscription Id if set, SubscriptionManager#INVALID_SUBSCRIPTION_ID otherwise.

Attributes

Remarks

Returns the system's default NFC subscription id.

For devices with multiple UICC/EUICC that is configured to be NFCEE, this returns the default UICC NFCEE that will handle NFC offhost CE transactions

If the device has no UICC that can serve as NFCEE, this will return SubscriptionManager#INVALID_SUBSCRIPTION_ID.

Java documentation for android.nfc.cardemulation.CardEmulation.getDefaultNfcSubscriptionId().

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