Added in API level 34

AvailableNfcAntenna


class AvailableNfcAntenna : Parcelable
kotlin.Any
   ↳ android.nfc.AvailableNfcAntenna

Represents a single available Nfc antenna on an Android device.

Summary

Inherited constants
Public constructors
AvailableNfcAntenna(locationX: Int, locationY: Int)

Public methods
Int

Boolean
equals(other: Any?)

Returns true if the specified AvailableNfcAntenna contains identical specifications.

Int

Location of the antenna on the X axis in millimeters.

Int

Location of the antenna on the Y axis in millimeters.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<AvailableNfcAntenna!>

Public constructors

AvailableNfcAntenna

Added in API level 34
AvailableNfcAntenna(
    locationX: Int,
    locationY: Int)

Public methods

describeContents

Added in API level 34
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 34
fun equals(other: Any?): Boolean

Returns true if the specified AvailableNfcAntenna contains identical specifications.

Parameters
obj This value may be null.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getLocationX

Added in API level 34
fun getLocationX(): Int

Location of the antenna on the X axis in millimeters. 0 is the bottom-left when the user is facing the screen and the device orientation is Portrait.

getLocationY

Added in API level 34
fun getLocationY(): Int

Location of the antenna on the Y axis in millimeters. 0 is the bottom-left when the user is facing the screen and the device orientation is Portrait.

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 34
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 34
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 either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 34
static val CREATOR: Parcelable.Creator<AvailableNfcAntenna!>