FlutterNfcHce class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getPlatformVersion(
) → Future< String?> -
isNfcEnabled(
) → Future< bool> -
isNfcHceSupported(
) → Future< bool> -
isSecureNfcEnabled(
) → Future< bool> - Below sdk 29 (Android 10) it always returns false
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startNfcHce(
String content, {String mimeType = 'text/plain', bool persistMessage = true}) → Future< String?> - Starts the NFC host card emulation. If persistMessage is true, the NFC message is stored in a text file in the internal storage.
-
stopNfcHce(
) → Future< void> - Starts the NFC host card emulation. Deletes the saved text file with the NFC message from the internal storage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited