Added in API level 36

Builder


class Builder
kotlin.Any
   ↳ android.ranging.uwb.UwbComplexChannel.Builder

Builder for creating instances of UwbComplexChannel.

Summary

Public constructors

Public methods
UwbComplexChannel

Builds and returns a new instance of UwbComplexChannel.

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, UWB_PREAMBLE_CODE_INDEX_10, UWB_PREAMBLE_CODE_INDEX_11 or UWB_PREAMBLE_CODE_INDEX_12.

Public constructors

Builder

Added in API level 36
Builder()

Public methods

build

Added in API level 36
fun build(): UwbComplexChannel

Builds and returns a new instance of UwbComplexChannel.

Return
UwbComplexChannel A new UwbComplexChannel instance.
This value cannot be null.

setChannel

Added in API level 36
fun setChannel(channel: Int): UwbComplexChannel.Builder

Sets the channel for the ranging device.

Defaults to UWB_CHANNEL_5

Parameters
channel Int: The channel number to be set.
Return
UwbComplexChannel.Builder This Builder instance.
This value cannot be null.

setPreambleIndex

Added in API level 36
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.

Parameters
preambleIndex Int: The preamble index to be set.
Return
UwbComplexChannel.Builder This Builder instance.
This value cannot be null.