Język

NfcAntennaInfo Constructor

Definition

Creates NFC antenna information from the device dimensions, foldable status, and antenna locations.

[Android.Runtime.Register(".ctor", "(IIZLjava/util/List;)V", "", ApiSince=34)]
public NfcAntennaInfo(int deviceWidth, int deviceHeight, bool deviceFoldable, System.Collections.Generic.IList<Android.Nfc.AvailableNfcAntenna> availableNfcAntennas);
[<Android.Runtime.Register(".ctor", "(IIZLjava/util/List;)V", "", ApiSince=34)>]
new Android.Nfc.NfcAntennaInfo : int * int * bool * System.Collections.Generic.IList<Android.Nfc.AvailableNfcAntenna> -> Android.Nfc.NfcAntennaInfo

Parameters

deviceWidth
Int32

The device width, in millimeters.

deviceHeight
Int32

The device height, in millimeters.

deviceFoldable
Boolean

true if the device is foldable; otherwise, false.

availableNfcAntennas
IList<AvailableNfcAntenna>

The available NFC antenna locations on the device.

Attributes

Remarks

For a foldable device, the coordinate origin is the top-left corner when the device is unfolded and its screens face the user. For a non-foldable device, the origin is the top-left corner when the user faces the screen.

Android source for the constructor and device information getters.

Applies to