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 |
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
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
|
getChannelWidth
public int getChannelWidth ()
Gets the channel width.
| Returns | |
|---|---|
int |
Value is one of the following: |
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:
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-26 UTC.