getNFCService()

Use this factory function to get an instance of NFCService.

Syntax

import { getNFCService } from 'lightning/mobileCapabilities';
getNFCService(): NFCService

Parameters

None.

Returns

An instance of NFCService.

Usage

There are no parameters or options when creating an instance. Use the instance to perform NFC operations.