public class RxBleGattCallback
extends java.lang.Object
| Constructor and Description |
|---|
RxBleGattCallback(Scheduler callbackScheduler,
BluetoothGattProvider bluetoothGattProvider,
com.polidea.rxandroidble2.internal.connection.DisconnectionRouter disconnectionRouter,
com.polidea.rxandroidble2.internal.connection.NativeCallbackDispatcher nativeCallbackDispatcher) |
| Modifier and Type | Method and Description |
|---|---|
android.bluetooth.BluetoothGattCallback |
getBluetoothGattCallback() |
<any> |
getConnectionParametersUpdates() |
<any> |
getOnCharacteristicChanged() |
<any> |
getOnCharacteristicRead() |
<any> |
getOnCharacteristicWrite() |
<any> |
getOnConnectionStateChange() |
<any> |
getOnDescriptorRead() |
<any> |
getOnDescriptorWrite() |
<any> |
getOnMtuChanged() |
<any> |
getOnRssiRead() |
<any> |
getOnServicesDiscovered() |
<T> <any> |
observeDisconnect() |
void |
setHiddenNativeCallback(HiddenBluetoothGattCallback callbackHidden)
setNativeCallback(BluetoothGattCallback)
Since Android 8.0 (API 26) BluetoothGattCallback has some hidden method(s). |
void |
setNativeCallback(android.bluetooth.BluetoothGattCallback callback)
A native callback allows to omit RxJava's abstraction on the
BluetoothGattCallback. |
public RxBleGattCallback(Scheduler callbackScheduler,
BluetoothGattProvider bluetoothGattProvider,
com.polidea.rxandroidble2.internal.connection.DisconnectionRouter disconnectionRouter,
com.polidea.rxandroidble2.internal.connection.NativeCallbackDispatcher nativeCallbackDispatcher)
public android.bluetooth.BluetoothGattCallback getBluetoothGattCallback()
public <T> <any> observeDisconnect()
BleDisconnectedException - emitted in case of a disconnect that is a part of the normal flowBleGattException - emitted in case of connection was interrupted unexpectedly.public <any> getOnConnectionStateChange()
public <any> getOnServicesDiscovered()
public <any> getOnMtuChanged()
public <any> getOnCharacteristicRead()
public <any> getOnCharacteristicWrite()
public <any> getOnCharacteristicChanged()
public <any> getOnDescriptorRead()
public <any> getOnDescriptorWrite()
public <any> getOnRssiRead()
public <any> getConnectionParametersUpdates()
public void setNativeCallback(android.bluetooth.BluetoothGattCallback callback)
BluetoothGattCallback.
It's intended to be used only with a RxBleCustomOperation in a performance
critical implementations. If you don't know if your operation is performance critical it's likely that you shouldn't use this API
and stick with the RxJava.
The callback reference will be automatically released after the operation is terminated. The main drawback of this API is that we can't assure you the thread on which it will be executed. Please keep this in mind as the system may execute it on a main thread.
callback - the object to be calledpublic void setHiddenNativeCallback(HiddenBluetoothGattCallback callbackHidden)
setNativeCallback(BluetoothGattCallback)
Since Android 8.0 (API 26) BluetoothGattCallback has some hidden method(s). Setting this HiddenBluetoothGattCallback will
relay calls to those hidden methods.
On API lower than 26 this method does nothingcallbackHidden - the object to be called