E - the callbacks interface.@Deprecated public abstract class LegacyBleManager<E extends BleManagerCallbacks> extends BleManager
BleManager.BleManagerGattCallback| Modifier and Type | Field and Description |
|---|---|
protected E |
mCallbacks
Deprecated.
|
callbacks, PAIRING_VARIANT_CONSENT, PAIRING_VARIANT_DISPLAY_PASSKEY, PAIRING_VARIANT_DISPLAY_PIN, PAIRING_VARIANT_OOB_CONSENT, PAIRING_VARIANT_PASSKEY, PAIRING_VARIANT_PASSKEY_CONFIRMATION, PAIRING_VARIANT_PIN| Constructor and Description |
|---|
LegacyBleManager(android.content.Context context)
Deprecated.
|
LegacyBleManager(android.content.Context context,
android.os.Handler handler)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setGattCallbacks(BleManagerCallbacks callbacks)
Deprecated.
Sets the manager callback listener.
|
beginAtomicRequestQueue, beginReliableWrite, cancelQueue, close, connect, connect, createBond, createBondInsecure, disableBatteryLevelNotifications, disableIndications, disableNotifications, disconnect, enableBatteryLevelNotifications, enableIndications, enableNotifications, enqueue, ensureBond, getBatteryValue, getBluetoothDevice, getConnectionState, getContext, getGattCallback, getMtu, getServiceDiscoveryDelay, isBonded, isConnected, isReady, isReliableWriteInProgress, log, log, onPairingRequestReceived, overrideMtu, readBatteryLevel, readCharacteristic, readDescriptor, readPhy, readRssi, refreshDeviceCache, removeBond, removeIndicationCallback, removeNotificationCallback, removeWriteCallback, removeWriteCallback, requestConnectionPriority, requestMtu, runOnCallbackThread, sendIndication, sendIndication, sendIndication, sendNotification, sendNotification, sendNotification, setBondingObserver, setCharacteristicValue, setCharacteristicValue, setCharacteristicValue, setConnectionObserver, setDescriptorValue, setDescriptorValue, setDescriptorValue, setIndicationCallback, setNotificationCallback, setPreferredPhy, setWriteCallback, setWriteCallback, shouldAutoConnect, shouldClearCacheWhenDisconnected, sleep, useServer, waitForIndication, waitForNotification, waitForRead, waitForRead, waitForRead, waitForRead, waitForRead, waitForRead, waitForWrite, waitForWrite, waitIf, waitIf, waitUntil, waitUntil, waitUntilIndicationsEnabled, waitUntilNotificationsEnabled, writeCharacteristic, writeCharacteristic, writeCharacteristic, writeDescriptor, writeDescriptor, writeDescriptorprotected E extends BleManagerCallbacks mCallbacks
public LegacyBleManager(@NonNull
android.content.Context context)
public LegacyBleManager(@NonNull
android.content.Context context,
@NonNull
android.os.Handler handler)
public void setGattCallbacks(@NonNull
BleManagerCallbacks callbacks)
BleManagersetGattCallbacks in class BleManagercallbacks - the callback listener.