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