This method allows you get a new instance of NolPayNfcComponent
.
The NolPayNfcComponent
class provides methods for managing NFC (Near Field Communication)
functionality within the Primer SDK. This component allows you to interact with NFC features such as
enabling/disabling foreground dispatch, retrieving NFC tag information, and checking the NFC status.
1
fun provideNolPayNfcComponent(): NolPayNfcComponent
kotlin
copy
Returns
An instance of NolPayNfcComponent
.
NolPayNfcComponent
Enable foreground dispatch for NFC events in the given activity with a specific request code.The activity in which NFC foreground dispatch should be enabled.The request code to associate with NFC events.
Parameters
activity
ActivityrequestCode
IntDisable foreground dispatch for NFC events in the given activity.The activity in which NFC foreground dispatch should be enabled.
Parameters
activity
ActivityRetrieve the available NFC tag from an intent. Returns NFC tag.
Parameters
intent
Intent?Get the current NFC status.