NfcAntennaInfo class
Where this device's NFC antennas are, for an app that wants to show the user where to hold the tag.
API 34 and above; NfcUtilAndroid.getAntennaInfo returns null below that, and on a device that reports no geometry.
Constructors
-
NfcAntennaInfo({required int deviceWidth, required int deviceHeight, required bool deviceFoldable, required List<
NfcAntennaLocation> antennas}) -
const
Properties
-
antennas
→ List<
NfcAntennaLocation> -
Usually one; a foldable can report several.
final
- deviceFoldable → bool
-
True for a foldable, where antennas describes the device unfolded and an antenna can
therefore be on either half.
final
- deviceHeight → int
-
Device height in millimetres, unfolded for a foldable.
final
- deviceWidth → int
-
Device width in millimetres, unfolded for a foldable.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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