Added in API level 36
Builder
class Builder
| kotlin.Any | |
| ↳ | android.ranging.RangingDevice.Builder |
A builder class for creating instances of RangingDevice.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| RangingDevice |
build()Builds a new instance of |
| RangingDevice.Builder |
Sets the UUID for the device. |
Public constructors
Public methods
build
Added in API level 36
fun build(): RangingDevice
Builds a new instance of RangingDevice with the provided configuration.
| Return | |
|---|---|
RangingDevice |
A new RangingDevice instance. This value cannot be null. |
setUuid
Added in API level 36
fun setUuid(id: UUID): RangingDevice.Builder
Sets the UUID for the device.
| Parameters | |
|---|---|
id |
UUID: The UUID to assign to the device. This value cannot be null. |
| Return | |
|---|---|
RangingDevice.Builder |
This Builder instance. This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.IllegalArgumentException |
if the provided UUID is null. |