Builder
class Builder
| kotlin.Any | |
| ↳ | android.ranging.uwb.UwbComplexChannel.Builder |
Builder for creating instances of UwbComplexChannel.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| UwbComplexChannel |
build()Builds and returns a new instance of |
| UwbComplexChannel.Builder |
setChannel(channel: Int)Sets the channel for the ranging device. |
| UwbComplexChannel.Builder |
setPreambleIndex(preambleIndex: Int)Sets the preamble index for the ranging device as defined in See UWB_PREAMBLE_CODE_INDEX_9, |
Public constructors
Public methods
build
fun build(): UwbComplexChannel
Builds and returns a new instance of UwbComplexChannel.
| Return | |
|---|---|
UwbComplexChannel |
A new UwbComplexChannel instance. This value cannot be null. |
setChannel
fun setChannel(channel: Int): UwbComplexChannel.Builder
Sets the channel for the ranging device.
Defaults to UWB_CHANNEL_5
| Return | |
|---|---|
UwbComplexChannel.Builder |
This Builder instance. This value cannot be null. |
setPreambleIndex
fun setPreambleIndex(preambleIndex: Int): UwbComplexChannel.Builder
Sets the preamble index for the ranging device as defined in See UWB_PREAMBLE_CODE_INDEX_9, UWB_PREAMBLE_CODE_INDEX_10, UWB_PREAMBLE_CODE_INDEX_11 or UWB_PREAMBLE_CODE_INDEX_12. For better performance always use a random preamble index for each ranging session.
| Return | |
|---|---|
UwbComplexChannel.Builder |
This Builder instance. This value cannot be null. |