Added in API level 36
Builder
class Builder
| kotlin.Any | |
| ↳ | android.ranging.raw.RawInitiatorRangingConfig.Builder |
Builder class for constructing instances of RawInitiatorRangingConfig.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| RawInitiatorRangingConfig.Builder |
addRawRangingDevice(rangingDevice: RawRangingDevice)Adds a |
| RawInitiatorRangingConfig.Builder |
addRawRangingDevices(rangingDevices: MutableList<RawRangingDevice!>)Adds a list of |
| RawInitiatorRangingConfig |
build()Builds and returns a new |
Public constructors
Public methods
addRawRangingDevice
Added in API level 36
fun addRawRangingDevice(rangingDevice: RawRangingDevice): RawInitiatorRangingConfig.Builder
Adds a RawRangingDevice to the list of devices for this session.
| Parameters | |
|---|---|
rangingDevice |
RawRangingDevice: the device to be added. This value cannot be null. |
| Return | |
|---|---|
RawInitiatorRangingConfig.Builder |
this Builder instance. This value cannot be null. |
addRawRangingDevices
Added in API level 36
fun addRawRangingDevices(rangingDevices: MutableList<RawRangingDevice!>): RawInitiatorRangingConfig.Builder
Adds a list of android.ranging.raw.RawRangingDevice to the list of devices for this session.
| Parameters | |
|---|---|
rangingDevices |
MutableList<RawRangingDevice!>: the list of devices to be added. This value cannot be null. |
| Return | |
|---|---|
RawInitiatorRangingConfig.Builder |
this Builder instance. This value cannot be null. |
build
Added in API level 36
fun build(): RawInitiatorRangingConfig
Builds and returns a new RawInitiatorRangingConfig instance.
| Return | |
|---|---|
RawInitiatorRangingConfig |
a configured instance of RawInitiatorRangingConfig. This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if no RawRangingDevice is configured. |