> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# provideNolPayNfcComponent

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.

```kotlin KOTLIN theme={"dark"}
fun provideNolPayNfcComponent(): NolPayNfcComponent
```

## Returns

An instance of `NolPayNfcComponent`.

**NolPayNfcComponent**

**enableForegroundDispatch(activity: Activity, requestCode: Int)**

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.

**requestCode** `Int`

The request code to associate with NFC events.

**disableForegroundDispatch(activity: Activity)**

Disable foreground dispatch for NFC events in the given activity.

**Parameters**

**activity** `Activity`

The activity in which NFC foreground dispatch should be enabled.

**getAvailableTag(intent: Intent?): Tag?**

Retrieve the available NFC tag from an intent. Returns NFC [tag](https://developer.android.com/reference/android/nfc/Tag).

**Parameters**

**intent** `Intent?`

The intent containing NFC tag information.

**getNfcStatus(): NfcStatus**

Get the current NFC status.

**NfcStatus**

**NFC\_ENABLED**

**NFC\_DISABLED**

**NFC\_UNSUPPORTED**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.