Added in API level Baklava
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 |
setUwbRangingParams(params: UwbRangingParams) Sets the UWB ranging parameters. |
Public constructors
Public methods
build
Added in API level Baklava
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
Added in API level Baklava
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
Added in API level Baklava
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
Added in API level Baklava
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
Added in API level Baklava
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 . |
setUwbRangingParams
Added in API level Baklava
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 . |