-
- All Implemented Interfaces:
-
no.nordicsemi.android.ble.utils.ILogger
@Deprecated() public abstract class LegacyBleManager<E extends BleManagerCallbacks> extends BleManager
When migrating from BLE Manager 2.1.1 to 2.2.0, the BleManager is no longer a template class. Callbacks need to be passed in other way, e.g. using LiveData, RxJava or with a callback, but the BleManager will not hold the callbacks reference.
To make the migration easier, this class behaves the same way as the old BleManager. Replace the base class of your manager to LegacyBleManager.
-
-
Constructor Summary
Constructors Constructor Description LegacyBleManager(Context context)LegacyBleManager(Context context, Handler handler)
-
Method Summary
Modifier and Type Method Description voidsetGattCallbacks(@NonNull() BleManagerCallbacks callbacks)Sets the manager callback listener. -
Methods inherited from class no.nordicsemi.android.ble.BleManager
attachClientConnection, close, connect, connect, disconnect, getBatteryValue, getBluetoothDevice, getBondingObserver, getConnectionObserver, getConnectionState, getMinLogPriority, isConnected, isReady, log, log, setBondingObserver, setConnectionObserver, useServer -
Methods inherited from class no.nordicsemi.android.ble.utils.ILogger
log, log -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setGattCallbacks
void setGattCallbacks(@NonNull() BleManagerCallbacks callbacks)
Sets the manager callback listener.
- Parameters:
callbacks- the callback listener.
-
-
-
-