-
- All Implemented Interfaces:
-
com.validic.mobile.ble.BluetoothPeripheralRequest
public final class ScanRequest extends BluetoothRequest<BluetoothScanResult> implements BluetoothPeripheralRequest
Scan for a BluetoothDevice that matches a BluetoothPeripheral and return the first instance of BluetoothDevice that matches the profile and satisfies the criteria of the ScanFilter if provided
-
-
Field Summary
Fields Modifier and Type Field Description private final BluetoothPeripheral
peripheral
private final ScanFilter
scanFilter
private final BluetoothScanPredicate
scanPredicate
private final Duration
timeout
private OnStartHandler
onStart
private OnCompleteHandler
onCompleted
-
Constructor Summary
Constructors Constructor Description ScanRequest(BluetoothPeripheral peripheral, ScanFilter scanFilter, BluetoothScanPredicate scanPredicate)
ScanRequest(BluetoothPeripheral peripheral, ScanFilter scanFilter)
ScanRequest(BluetoothPeripheral peripheral)
-
Method Summary
Modifier and Type Method Description BluetoothPeripheral
getPeripheral()
final ScanFilter
getScanFilter()
final BluetoothScanPredicate
getScanPredicate()
Duration
getTimeout()
OnStartHandler
getOnStart()
Unit
setOnStart(OnStartHandler onStart)
OnCompleteHandler
getOnCompleted()
Unit
setOnCompleted(OnCompleteHandler onCompleted)
-
-
Constructor Detail
-
ScanRequest
ScanRequest(BluetoothPeripheral peripheral, ScanFilter scanFilter, BluetoothScanPredicate scanPredicate)
-
ScanRequest
ScanRequest(BluetoothPeripheral peripheral, ScanFilter scanFilter)
-
ScanRequest
ScanRequest(BluetoothPeripheral peripheral)
-
-
Method Detail
-
getPeripheral
BluetoothPeripheral getPeripheral()
-
getScanFilter
final ScanFilter getScanFilter()
-
getScanPredicate
final BluetoothScanPredicate getScanPredicate()
-
getTimeout
Duration getTimeout()
-
getOnStart
OnStartHandler getOnStart()
-
setOnStart
Unit setOnStart(OnStartHandler onStart)
-
getOnCompleted
OnCompleteHandler getOnCompleted()
-
setOnCompleted
Unit setOnCompleted(OnCompleteHandler onCompleted)
-
-
-
-