startNfcHce method

Future<String?> startNfcHce(
  1. String content, {
  2. String mimeType = 'text/plain',
  3. bool persistMessage = true,
})

Starts the NFC host card emulation. If persistMessage is true, the NFC message is stored in a text file in the internal storage.

Implementation

Future<String?> startNfcHce(
    String content, {
      String mimeType = 'text/plain',
      bool persistMessage = true,
    }) {
  return FlutterNfcHcePlatform.instance.startNfcHce(
    content,
    mimeType,
    persistMessage,
  );
}