public final class ReadRssiRequest extends SimpleValueRequest<RssiCallback> implements Operation
handler, requestHandler| Modifier and Type | Method and Description |
|---|---|
ReadRssiRequest |
before(BeforeCallback callback)
Sets a callback that will be executed before the execution of this operation starts.
|
ReadRssiRequest |
done(SuccessCallback callback)
Use to set a completion callback.
|
ReadRssiRequest |
fail(FailCallback callback)
Use to set a callback that will be called in case the request has failed.
|
ReadRssiRequest |
invalid(InvalidRequestCallback callback)
Use to set a callback that will be called in case the request was invalid, for example
called before the device was connected.
|
ReadRssiRequest |
setHandler(android.os.Handler handler)
Sets the handler that will be used to invoke callbacks.
|
ReadRssiRequest |
with(RssiCallback callback)
Sets the value callback.
|
await, awaitawaitcreateBond, enqueue, newConnectionPriorityRequest, newDisableBatteryLevelNotificationsRequest, newDisableIndicationsRequest, newDisableNotificationsRequest, newEnableBatteryLevelNotificationsRequest, newEnableIndicationsRequest, newEnableNotificationsRequest, newMtuRequest, newReadBatteryLevelRequest, newReadPhyRequest, newReadRequest, newReadRequest, newReadRssiRequest, newRefreshCacheRequest, newSetPreferredPhyRequest, newSleepRequest, newWaitForIndicationRequest, newWaitForNotificationRequest, newWriteRequest, newWriteRequest, newWriteRequest, newWriteRequest, newWriteRequest, newWriteRequest, removeBond@NonNull public ReadRssiRequest setHandler(@NonNull android.os.Handler handler)
RequestBleManager will be used.setHandler in class Requesthandler - The handler to invoke callbacks for this request.@NonNull public ReadRssiRequest done(@NonNull SuccessCallback callback)
Request@NonNull public ReadRssiRequest fail(@NonNull FailCallback callback)
RequestBleManager.connect(BluetoothDevice) was never called), the
Request.invalid(InvalidRequestCallback) will be used instead, as the
BluetoothDevice is not known.
This callback will be ignored if request was executed synchronously, in which case the error will be returned as an exception.
@NonNull public ReadRssiRequest invalid(@NonNull InvalidRequestCallback callback)
Request@NonNull public ReadRssiRequest before(@NonNull BeforeCallback callback)
Request@NonNull public ReadRssiRequest with(@NonNull RssiCallback callback)
SimpleValueRequestawait(...) method;with in class SimpleValueRequest<RssiCallback>callback - the callback.