RttStationRangingParams.Builder
public
static
final
class
RttStationRangingParams.Builder
extends Object
java.lang.Object | |
↳ | android.ranging.wifi.rtt.RttStationRangingParams.Builder |
Builder class for RttStationRangingParams
.
Summary
Public constructors | |
---|---|
Builder(String bssid)
Constructs a new |
Public methods | |
---|---|
RttStationRangingParams
|
build()
Builds and returns a new |
RttStationRangingParams.Builder
|
setChannelWidth(int channelWidth)
set channel width for this ranging session |
RttStationRangingParams.Builder
|
setRangingUpdateRate(int updateRate)
Sets the update rate for the STA-AP ranging session. |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder (String bssid)
Constructs a new Builder
for creating a Wifi Station ranging session.
Parameters | |
---|---|
bssid |
String : address of the remote AP.
This value cannot be null . |
Throws | |
---|---|
IllegalArgumentException |
if bssid is null. |
Public methods
build
public RttStationRangingParams build ()
Builds and returns a new RttStationRangingParams
instance.
Returns | |
---|---|
RttStationRangingParams |
a new RttStationRangingParams object configured with the
provided parameters.
This value cannot be null . |
setChannelWidth
public RttStationRangingParams.Builder setChannelWidth (int channelWidth)
set channel width for this ranging session
Parameters | |
---|---|
channelWidth |
int : . Set channel width if ranging have to be started
with lower bandwidth than supported higher bandwidth.
Possible values:
|
Returns | |
---|---|
RttStationRangingParams.Builder |
This value cannot be null . |
Throws | |
---|---|
IllegalArgumentException |
if channelWidth is null. |
setRangingUpdateRate
public RttStationRangingParams.Builder setRangingUpdateRate (int updateRate)
Sets the update rate for the STA-AP ranging session.
Returns | |
---|---|
RttStationRangingParams.Builder |
this Builder instance.
This value cannot be null . |