UwbComplexChannel.Builder
public
static
final
class
UwbComplexChannel.Builder
extends Object
java.lang.Object | |
↳ | 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(int channel)
Sets the channel for the ranging device. |
|||
UwbComplexChannel.Builder
|
setPreambleIndex(int preambleIndex)
Sets the preamble index for the ranging device as defined in
See
|
Public constructors
Public methods
build
public UwbComplexChannel build ()
Builds and returns a new instance of UwbComplexChannel
.
Returns | |
---|---|
UwbComplexChannel |
A new UwbComplexChannel instance.
This value cannot be null . |
setChannel
public UwbComplexChannel.Builder setChannel (int channel)
Sets the channel for the ranging device.
Defaults to UwbComplexChannel.UWB_CHANNEL_5
Parameters | |
---|---|
channel |
int : The channel number to be set.
Value is UwbComplexChannel.UWB_CHANNEL_5 , UwbComplexChannel.UWB_CHANNEL_6 , UwbComplexChannel.UWB_CHANNEL_8 , UwbComplexChannel.UWB_CHANNEL_9 , UwbComplexChannel.UWB_CHANNEL_10 , UwbComplexChannel.UWB_CHANNEL_12 , UwbComplexChannel.UWB_CHANNEL_13 , or UwbComplexChannel.UWB_CHANNEL_14 |
Returns | |
---|---|
UwbComplexChannel.Builder |
This Builder instance.
This value cannot be null . |
setPreambleIndex
public UwbComplexChannel.Builder setPreambleIndex (int preambleIndex)
Sets the preamble index for the ranging device as defined in
See UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_9, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_10
,
UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_11
or UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_12
.
For better performance always use a random preamble index for each ranging session.
Returns | |
---|---|
UwbComplexChannel.Builder |
This Builder instance.
This value cannot be null . |