WifiPdRangingParams


public final class WifiPdRangingParams
extends Object implements Parcelable

java.lang.Object
   ↳ 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

class WifiPdRangingParams.Builder

Builder for WifiPdRangingParams

Inherited constants

Fields

public static final Creator<WifiPdRangingParams> CREATOR

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

int getChannelWidth()

Gets the channel width.

byte[] getDeviceIk()

Gets the device identity key (IK).

int getDiscoveryChannelFrequencyMhz()

Gets the discovery channel frequency in MHz.

int getPasnMode()

Gets the PASN mode.

String getPassword()

Gets the password for the ranging session.

MacAddress getPeerMacAddress()

Gets the MAC address of the peer device.

int getPreambleType()

Gets the preamble type.

int getRangingUpdateRate()

Gets the ranging update rate.

boolean isResponder80211azNtbSupported()

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

void writeToParcel(Parcel dest, int flags)

Flatten this object in to a Parcel.

Inherited methods

Fields

CREATOR

public static final Creator<WifiPdRangingParams> CREATOR

Public methods

describeContents

public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getDeviceIk

public byte[] getDeviceIk ()

Gets the device identity key (IK).

This is used for authenticated PASN mode.

Returns
byte[] This value may be null.

getDiscoveryChannelFrequencyMhz

public int getDiscoveryChannelFrequencyMhz ()

Gets the discovery channel frequency in MHz.

Returns
int Value is between 2400 and 7125 inclusive

getPasnMode

public int getPasnMode ()

Gets the PASN mode.

Returns
int Value is one of the following:

getPassword

public String getPassword ()

Gets the password for the ranging session.

This is used for authenticated PASN mode.

Returns
String This value may be null.

getPeerMacAddress

public MacAddress getPeerMacAddress ()

Gets the MAC address of the peer device.

Returns
MacAddress This value cannot be null.

getPreambleType

public int getPreambleType ()

Gets the preamble type.

Returns
int Value is one of the following:

getRangingUpdateRate

public int getRangingUpdateRate ()

Gets the ranging update rate.

Returns
int Value is one of the following:

isResponder80211azNtbSupported

public boolean isResponder80211azNtbSupported ()

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

Returns
boolean

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

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