Compartilhar via


CardEmulation.RouteDestinationForPreferredPaymentService Property

Definition

Retrieves the route destination for the preferred payment service.

public string? RouteDestinationForPreferredPaymentService { [Android.Runtime.Register("getRouteDestinationForPreferredPaymentService", "()Ljava/lang/String;", "", ApiSince=30)] [Android.Runtime.RequiresPermission("android.permission.NFC_PREFERRED_PAYMENT_INFO")] get; }
[<get: Android.Runtime.Register("getRouteDestinationForPreferredPaymentService", "()Ljava/lang/String;", "", ApiSince=30)>]
[<get: Android.Runtime.RequiresPermission("android.permission.NFC_PREFERRED_PAYMENT_INFO")>]
member this.RouteDestinationForPreferredPaymentService : string

Property Value

The route destination secure element name of the preferred payment service. HCE payment: "Host" OffHost payment: 1. String with prefix SIM or prefix eSE string. Ref: GSMA TS.26 - NFC Handset Requirements TS26_NFC_REQ_069: For UICC, Secure Element Name SHALL be SIM[smartcard slot] (e.g. SIM/SIM1, SIM2… SIMn). TS26_NFC_REQ_070: For embedded SE, Secure Element Name SHALL be eSE[number] (e.g. eSE/eSE1, eSE2, etc.). 2. "OffHost" if the payment service does not specify secure element name.

Attributes

Remarks

Retrieves the route destination for the preferred payment service.

Starting with Build.VERSION_CODES#VANILLA_ICE_CREAM, the preferred payment service no longer exists and is replaced by android.app.role.RoleManager#ROLE_WALLET. This will return the route for one of the services registered by the role holder (if any). If there are multiple services registered, it is unspecified which of those will be used to determine the route.

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

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