Builder
class Builder
kotlin.Any | |
↳ | android.ranging.raw.RawRangingDevice.Builder |
Builder class for creating instances of RawRangingDevice
.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
RawRangingDevice |
build() Builds and returns a new |
RawRangingDevice.Builder |
Sets the BLE rssi ranging parameters. |
RawRangingDevice.Builder |
setCsRangingParams(params: BleCsRangingParams) Sets the BLE channel sounding ranging parameters. |
RawRangingDevice.Builder |
setRangingDevice(rangingDevice: RangingDevice) Sets the ranging device. |
RawRangingDevice.Builder |
setRttRangingParams(params: RttRangingParams) Sets the WiFi NAN-RTT ranging parameters. |
RawRangingDevice.Builder |
Sets the WiFi STA-AP RTT ranging parameters. |
RawRangingDevice.Builder |
setUwbRangingParams(params: UwbRangingParams) Sets the UWB ranging parameters. |
Public constructors
Public methods
build
fun build(): RawRangingDevice
Builds and returns a new RawRangingDevice
instance.
Return | |
---|---|
RawRangingDevice |
a new RawRangingDevice configured with the specified parameters. This value cannot be null . |
setBleRssiRangingParams
fun setBleRssiRangingParams(params: BleRssiRangingParams): RawRangingDevice.Builder
Sets the BLE rssi ranging parameters.
Parameters | |
---|---|
params |
BleRssiRangingParams: the BleCsRangingParams to be set. This value cannot be null . |
Return | |
---|---|
RawRangingDevice.Builder |
this Builder instance for chaining calls. This value cannot be null . |
setCsRangingParams
fun setCsRangingParams(params: BleCsRangingParams): RawRangingDevice.Builder
Sets the BLE channel sounding ranging parameters.
Parameters | |
---|---|
params |
BleCsRangingParams: the BleCsRangingParams to be set. This value cannot be null . |
Return | |
---|---|
RawRangingDevice.Builder |
this Builder instance for chaining calls. This value cannot be null . |
setRangingDevice
fun setRangingDevice(rangingDevice: RangingDevice): RawRangingDevice.Builder
Sets the ranging device.
Parameters | |
---|---|
rangingDevice |
RangingDevice: the RangingDevice to be set. This value cannot be null . |
Return | |
---|---|
RawRangingDevice.Builder |
this Builder instance for chaining calls. This value cannot be null . |
setRttRangingParams
fun setRttRangingParams(params: RttRangingParams): RawRangingDevice.Builder
Sets the WiFi NAN-RTT ranging parameters.
Parameters | |
---|---|
params |
RttRangingParams: the RttRangingParams to be set. This value cannot be null . |
Return | |
---|---|
RawRangingDevice.Builder |
this Builder instance for chaining calls. This value cannot be null . |
setRttStationRangingParams
fun setRttStationRangingParams(params: RttStationRangingParams): RawRangingDevice.Builder
Sets the WiFi STA-AP RTT ranging parameters.
Parameters | |
---|---|
params |
RttStationRangingParams: the RttStationRangingParams to be set. This value cannot be null . |
Return | |
---|---|
RawRangingDevice.Builder |
this Builder instance for chaining calls. This value cannot be null . |
setUwbRangingParams
fun setUwbRangingParams(params: UwbRangingParams): RawRangingDevice.Builder
Sets the UWB ranging parameters.
Parameters | |
---|---|
params |
UwbRangingParams: the UwbRangingParams to be set. This value cannot be null . |
Return | |
---|---|
RawRangingDevice.Builder |
this Builder instance for chaining calls. This value cannot be null . |