public final class SetValueRequest extends SimpleRequest
handler, requestHandler| Modifier and Type | Method and Description |
|---|---|
SetValueRequest |
allowLongRead(boolean longReadSupported)
Sets whether Long Read procedure is supported by the remote device on the given characteristic
or descriptor.
|
SetValueRequest |
before(BeforeCallback callback)
Sets a callback that will be executed before the execution of this operation starts.
|
SetValueRequest |
done(SuccessCallback callback)
Use to set a completion callback.
|
SetValueRequest |
fail(FailCallback callback)
Use to set a callback that will be called in case the request has failed.
|
SetValueRequest |
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.
|
SetValueRequest |
setHandler(android.os.Handler handler)
Sets the handler that will be used to invoke callbacks.
|
awaitcreateBond, 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 SetValueRequest setHandler(@NonNull android.os.Handler handler)
RequestBleManager will be used.setHandler in class Requesthandler - The handler to invoke callbacks for this request.@NonNull public SetValueRequest done(@NonNull SuccessCallback callback)
Request@NonNull public SetValueRequest 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 SetValueRequest invalid(@NonNull InvalidRequestCallback callback)
Request@NonNull public SetValueRequest before(@NonNull BeforeCallback callback)
Request@NonNull public SetValueRequest allowLongRead(boolean longReadSupported)
longReadSupported - whether Long Read procedure is supported on the remote device on
the given characteristic or descriptor.