WifiPdRangingParams


class WifiPdRangingParams : Parcelable
kotlin.Any
   ↳ android.ranging.wifi.pd.WifiPdRangingParams

Defines the parameters for Wi-Fi Proximity Detection (PD) ranging.

These parameters are used to configure a Wi-Fi PD ranging session. This includes specifying the peer device's MAC address, discovery channel, ranging role, and security credentials.

Summary

Nested classes

Builder for WifiPdRangingParams.

Inherited constants
Public methods
Int

Int

Gets the channel width.

ByteArray?

Gets the device identity key (IK).

Int

Gets the discovery channel frequency in MHz.

Int

Gets the PASN mode.

String?

Gets the password for the ranging session.

MacAddress

Gets the MAC address of the peer device.

Int

Gets the preamble type.

Int

Gets the ranging update rate.

Boolean

Returns whether the responder supports 802.

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<WifiPdRangingParams!>

Public methods

describeContents

fun describeContents(): Int

getDeviceIk

fun getDeviceIk(): ByteArray?

Gets the device identity key (IK).

This is used for authenticated PASN mode.

Return
ByteArray? This value may be null.

getDiscoveryChannelFrequencyMhz

fun getDiscoveryChannelFrequencyMhz(): Int

Gets the discovery channel frequency in MHz.

Return
Int Value is between 2400 and 7125 inclusive

getPassword

fun getPassword(): String?

Gets the password for the ranging session.

This is used for authenticated PASN mode.

Return
String? This value may be null.

getPeerMacAddress

fun getPeerMacAddress(): MacAddress

Gets the MAC address of the peer device.

Return
MacAddress This value cannot be null.

getRangingUpdateRate

fun getRangingUpdateRate(): Int

Gets the ranging update rate.

Return
Int Value is one of the following:

isResponder80211azNtbSupported

fun isResponder80211azNtbSupported(): Boolean

Returns whether the responder supports 802.11az NTB (Next Generation Trigger-Based).

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 either 0 or a combination of the following:

Properties

CREATOR

static val CREATOR: Parcelable.Creator<WifiPdRangingParams!>