public final class MtuRequest extends SimpleValueRequest<MtuCallback> implements Operation
handler, requestHandler| Modifier and Type | Method and Description |
|---|---|
MtuRequest |
before(BeforeCallback callback)
Sets a callback that will be executed before the execution of this operation starts.
|
MtuRequest |
done(SuccessCallback callback)
Use to set a completion callback.
|
MtuRequest |
fail(FailCallback callback)
Use to set a callback that will be called in case the request has failed.
|
MtuRequest |
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.
|
MtuRequest |
setHandler(android.os.Handler handler)
Sets the handler that will be used to invoke callbacks.
|
MtuRequest |
with(MtuCallback 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 MtuRequest setHandler(@NonNull android.os.Handler handler)
RequestBleManager will be used.setHandler in class Requesthandler - The handler to invoke callbacks for this request.@NonNull public MtuRequest done(@NonNull SuccessCallback callback)
Request@NonNull public MtuRequest 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 MtuRequest invalid(@NonNull InvalidRequestCallback callback)
Request@NonNull public MtuRequest before(@NonNull BeforeCallback callback)
Request@NonNull public MtuRequest with(@NonNull MtuCallback callback)
SimpleValueRequestawait(...) method;with in class SimpleValueRequest<MtuCallback>callback - the callback.