-
public final class MonitorDeviceRequest extends BluetoothRequest<MonitorDeviceResult>
Request to enable or disable monitoring a device in the background from a specific BluetoothDevice. The BluetoothDevice must previously have successfully been returned in either a PairResult or a ReadResult previously in order to be registered.
-
-
Field Summary
Fields Modifier and Type Field Description private final BluetoothDevice
device
private final Boolean
enable
private final Duration
timeout
private OnStartHandler
onStart
private OnCompleteHandler
onCompleted
-
Constructor Summary
Constructors Constructor Description MonitorDeviceRequest(BluetoothDevice device, Boolean enable)
-
Method Summary
Modifier and Type Method Description final BluetoothDevice
getDevice()
final Boolean
getEnable()
Duration
getTimeout()
OnStartHandler
getOnStart()
Unit
setOnStart(OnStartHandler onStart)
OnCompleteHandler
getOnCompleted()
Unit
setOnCompleted(OnCompleteHandler onCompleted)
-
-
Constructor Detail
-
MonitorDeviceRequest
MonitorDeviceRequest(BluetoothDevice device, Boolean enable)
-
-
Method Detail
-
getDevice
final BluetoothDevice getDevice()
-
getTimeout
Duration getTimeout()
-
getOnStart
OnStartHandler getOnStart()
-
setOnStart
Unit setOnStart(OnStartHandler onStart)
-
getOnCompleted
OnCompleteHandler getOnCompleted()
-
setOnCompleted
Unit setOnCompleted(OnCompleteHandler onCompleted)
-
-
-
-