NfcAntennaInfo
class NfcAntennaInfo : Parcelable
| kotlin.Any | |
| ↳ | android.nfc.NfcAntennaInfo | 
Contains information on all available Nfc antennas on an Android device as well as information on the device itself in relation positioning of the antennas.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
| NfcAntennaInfo(deviceWidth: Int, deviceHeight: Int, deviceFoldable: Boolean, availableNfcAntennas: MutableList<AvailableNfcAntenna!>) | |
| Public methods | |
|---|---|
| Int | |
| MutableList<AvailableNfcAntenna!> | Get all NFC antennas that exist on the device. | 
| Int | Height of the device in millimeters. | 
| Int | Width of the device in millimeters. | 
| Boolean | Whether the device is foldable. | 
| Unit | writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. | 
| Properties | |
|---|---|
| static Parcelable.Creator<NfcAntennaInfo!> | |
Public constructors
NfcAntennaInfo
NfcAntennaInfo(
deviceWidth: Int,
deviceHeight: Int,
deviceFoldable: Boolean,
availableNfcAntennas: MutableList<AvailableNfcAntenna!>)
| Parameters | |
|---|---|
| availableNfcAntennas | MutableList<AvailableNfcAntenna!>: This value cannot be null. | 
Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
getAvailableNfcAntennas
fun getAvailableNfcAntennas(): MutableList<AvailableNfcAntenna!>
Get all NFC antennas that exist on the device.
| Return | |
|---|---|
| MutableList<AvailableNfcAntenna!> | This value cannot be null. | 
getDeviceHeight
fun getDeviceHeight(): Int
Height of the device in millimeters.
isDeviceFoldable
fun isDeviceFoldable(): Boolean
Whether the device is foldable. When the device is foldable, the 0, 0 is considered to be top-left when the device is unfolded and the screens are facing the user. For non-foldable devices 0, 0 is top-left when the user is facing the screen.
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
| dest | Parcel: This value cannot be null. | 
| flags | Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
