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.

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

Inherited methods

Public constructors

Builder

public Builder ()

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.

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.

Parameters
preambleIndex int: The preamble index to be set. Value is UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_9, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_10, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_11, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_12, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_25, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_26, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_27, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_28, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_29, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_30, UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_31, or UwbComplexChannel.UWB_PREAMBLE_CODE_INDEX_32

Returns
UwbComplexChannel.Builder This Builder instance. This value cannot be null.