> ## 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`.

<Expandable title="NolPayNfcComponent" defaultOpen>
  <ResponseField name="enableForegroundDispatch(activity: Activity, requestCode: Int)">
    Enable foreground dispatch for NFC events in the given activity with a specific request code.

    <Expandable title="Parameters">
      <ResponseField name="activity" type="Activity">
        The activity in which NFC foreground dispatch should be enabled.
      </ResponseField>

      <ResponseField name="requestCode" type="Int">
        The request code to associate with NFC events.
      </ResponseField>
    </Expandable>
  </ResponseField>

  <ResponseField name="disableForegroundDispatch(activity: Activity)">
    Disable foreground dispatch for NFC events in the given activity.

    <Expandable title="Parameters">
      <ResponseField name="activity" type="Activity">
        The activity in which NFC foreground dispatch should be enabled.
      </ResponseField>
    </Expandable>
  </ResponseField>

  <ResponseField name="getAvailableTag(intent: Intent?): Tag?">
    Retrieve the available NFC tag from an intent. Returns NFC [tag](https://developer.android.com/reference/android/nfc/Tag).

    <Expandable title="Parameters">
      <ResponseField name="intent" type="Intent?">
        The intent containing NFC tag information.
      </ResponseField>
    </Expandable>
  </ResponseField>

  <ResponseField name="getNfcStatus(): NfcStatus">
    Get the current NFC status.

    <Expandable title="NfcStatus">
      <ResponseField name="NFC_ENABLED" />

      <ResponseField name="NFC_DISABLED" />

      <ResponseField name="NFC_UNSUPPORTED" />
    </Expandable>
  </ResponseField>
</Expandable>
