-
- All Implemented Interfaces:
-
com.validic.mobile.ble.BluetoothPeripheralRequest
public final class ReadRequest extends BluetoothRequest<ReadResult> implements BluetoothPeripheralRequest
Request to Connect and Pair with a device.
-
-
Field Summary
Fields Modifier and Type Field Description private final BluetoothDevice
device
private final BluetoothPeripheral
peripheral
private final CompatScanRecord
scanRecord
private final Duration
timeout
private OnStartHandler
onStart
private OnCompleteHandler
onCompleted
-
Constructor Summary
Constructors Constructor Description ReadRequest(BluetoothDevice device, BluetoothPeripheral peripheral, CompatScanRecord scanRecord)
ReadRequest(BluetoothDevice device, BluetoothPeripheral peripheral)
-
Method Summary
Modifier and Type Method Description final BluetoothDevice
getDevice()
BluetoothPeripheral
getPeripheral()
final CompatScanRecord
getScanRecord()
Duration
getTimeout()
OnStartHandler
getOnStart()
Unit
setOnStart(OnStartHandler onStart)
OnCompleteHandler
getOnCompleted()
Unit
setOnCompleted(OnCompleteHandler onCompleted)
-
-
Constructor Detail
-
ReadRequest
ReadRequest(BluetoothDevice device, BluetoothPeripheral peripheral, CompatScanRecord scanRecord)
-
ReadRequest
ReadRequest(BluetoothDevice device, BluetoothPeripheral peripheral)
-
-
Method Detail
-
getDevice
final BluetoothDevice getDevice()
-
getPeripheral
BluetoothPeripheral getPeripheral()
-
getScanRecord
final CompatScanRecord getScanRecord()
-
getTimeout
Duration getTimeout()
-
getOnStart
OnStartHandler getOnStart()
-
setOnStart
Unit setOnStart(OnStartHandler onStart)
-
getOnCompleted
OnCompleteHandler getOnCompleted()
-
setOnCompleted
Unit setOnCompleted(OnCompleteHandler onCompleted)
-
-
-
-