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.
Parameters
activity
Activity
The activity in which NFC foreground dispatch should be enabled.
The request code to associate with NFC events.
Disable foreground dispatch for NFC events in the given activity.
Parameters
activity
Activity
The activity in which NFC foreground dispatch should be enabled.

Retrieve the available NFC tag from an intent. Returns NFC tag.

Parameters
intent
Intent?
The intent containing NFC tag information.