Class D1HCEService


  • public class D1HCEService
    extends D1HCEServiceImpl
    The HCE service for NFC communication during a contactless payment transaction.

    The mobile application has to register this service in its manifest file follow the instruction of Android HCE service, refer Register HCE Service

    An example of the registration:

         
        <service
             android:name="com.thalesgroup.gemalto.d1.d1pay.D1HCEService"
             android:exported="true"
             android:permission="android.permission.BIND_NFC_SERVICE">
             <intent-filter>
                 <action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE" />
                 <category android:name="android.intent.category.DEFAULT" />
             </intent-filter>
    
             <meta-data
                 android:name="android.nfc.cardemulation.host_apdu_service"
                 android:resource="@xml/apduservice" />
         </service>
         
     
    Since:
    2.0.0
    • Constructor Detail

      • D1HCEService

        public D1HCEService()