RangingParameters.Builder

public static class RangingParameters.Builder extends Object

Builder for creating RangingParameters.

Public Constructor Summary

Public Method Summary

RangingParameters.Builder
addPeerDevice(UwbDevice peerDevice)
Sets the peer which should be ranged against.
RangingParameters
build()
Builds a new instance of RangingParameters.
RangingParameters.Builder
setComplexChannel(UwbComplexChannel complexChannel)
Sets a complex channel.
RangingParameters.Builder
setIsAoaDisabled(boolean isAoaDisabled)
If true, disables angle of arrival measurement.
RangingParameters.Builder
setRangingUpdateRate(int rangingUpdateRate)
Sets the update rate.
RangingParameters.Builder
setSessionId(int sessionId)
Sets the session Id.
RangingParameters.Builder
setSessionKeyInfo(byte[] sessionKeyInfo)
Sets the session key Info.
RangingParameters.Builder
setSlotDuration(int slotDuration)
Sets the slot duration.
RangingParameters.Builder
setSubSessionId(int subSessionId)
Sets the sub-session Id.
RangingParameters.Builder
setSubSessionKeyInfo(byte[] subSessionKeyInfo)
Set the sub-session key info.
RangingParameters.Builder
setUwbConfigId(int uwbConfigId)
Sets the Config ID.
RangingParameters.Builder
setUwbRangeDataNtfConfig(UwbRangeDataNtfConfig uwbRangeDataNtfConfig)
Sets the UWB range data notification config.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public RangingParameters.Builder addPeerDevice (UwbDevice peerDevice)

Sets the peer which should be ranged against.

public RangingParameters build ()

Builds a new instance of RangingParameters.

public RangingParameters.Builder setComplexChannel (UwbComplexChannel complexChannel)

Sets a complex channel. This should be set if using ROLE_CONTROLLEE.

public RangingParameters.Builder setIsAoaDisabled (boolean isAoaDisabled)

If true, disables angle of arrival measurement.

public RangingParameters.Builder setRangingUpdateRate (int rangingUpdateRate)

Sets the update rate. Default is RangingParameters.RangingUpdateRate.FREQUENT.

public RangingParameters.Builder setSessionId (int sessionId)

Sets the session Id.

public RangingParameters.Builder setSessionKeyInfo (byte[] sessionKeyInfo)

Sets the session key Info.

public RangingParameters.Builder setSlotDuration (int slotDuration)

Sets the slot duration.

public RangingParameters.Builder setSubSessionId (int subSessionId)

Sets the sub-session Id.

public RangingParameters.Builder setSubSessionKeyInfo (byte[] subSessionKeyInfo)

Set the sub-session key info.

public RangingParameters.Builder setUwbConfigId (int uwbConfigId)

Sets the Config ID. This parameter must be explicitly set

public RangingParameters.Builder setUwbRangeDataNtfConfig (UwbRangeDataNtfConfig uwbRangeDataNtfConfig)

Sets the UWB range data notification config.