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 benull. | 
| Throws | |
|---|---|
| IllegalArgumentException | if bssidis null. | 
Public methods
build
public RttStationRangingParams build ()
Builds and returns a new RttStationRangingParams instance.
| Returns | |
|---|---|
| RttStationRangingParams | a new RttStationRangingParamsobject configured with the
 provided parameters.
 This value cannot benull. | 
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 channelWidthis null. | 
setRangingUpdateRate
public RttStationRangingParams.Builder setRangingUpdateRate (int updateRate)
Sets the update rate for the STA-AP ranging session.
| Returns | |
|---|---|
| RttStationRangingParams.Builder | this Builderinstance.
 This value cannot benull. | 
