TagIntentSetup class

Whether a tag intent can actually reach this app, as NfcUtilAndroid.checkTagIntentSetup found it.

Both of the ways this can be wrong fail silently -- the tap does nothing, and nothing is logged -- so this exists to turn them into something an app can show or assert on.

Properties

dispatchPermissionRequired bool
True on Android 17 and above, where an activity with an NFC intent filter is only dispatched to when it declares android.permission.DISPATCH_NFC_MESSAGE.
no setter
hashCode int
The hash code for this object.
no setterinherited
isHealthy bool
True when nothing found here would stop a tap from reaching the app.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tagIntentAllowed bool
Whether the user has this app on Android 16's tag-scan allowlist. True on a device with no such allowlist, so that "false" always means the user actually said no.
no setter
tagIntentPreferenceSupported bool
Whether the device implements that allowlist at all.
no setter
unguardedActivities List<String>
Activities in this app that answer an NFC intent without that permission, and so will never be dispatched to. Always empty when dispatchPermissionRequired is false.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited