Added in API level 36
    Builder
class Builder
| kotlin.Any | |
| ↳ | android.ranging.oob.DeviceHandle.Builder | 
Builder class for creating instances of DeviceHandle.
Summary
| Public constructors | |
|---|---|
| Builder(rangingDevice: RangingDevice, transportHandle: TransportHandle)Constructs a new  | |
| Public methods | |
|---|---|
| DeviceHandle | build()Builds and returns a new  | 
Public constructors
Builder
Added in API level 36
      Builder(
rangingDevice: RangingDevice,
transportHandle: TransportHandle)
Constructs a new Builder with the required RangingDevice and TransportHandle.
| Parameters | |
|---|---|
| rangingDevice | RangingDevice: the RangingDeviceThis value cannot benull. | 
| transportHandle | TransportHandle: Implementation of TransportHandlefor sending/receiving OOB data from peer This value cannot benull. | 
| Exceptions | |
|---|---|
| java.lang.NullPointerException | if either parameter is null. | 
Public methods
build
Added in API level 36
      fun build(): DeviceHandle
Builds and returns a new DeviceHandle instance using the parameters provided to this builder.
| Return | |
|---|---|
| DeviceHandle | a newly created DeviceHandleinstance. This value cannot benull. | 
