public interface IBluetoothManager
BluetoothManager
and BluetoothAdapter
.for the default implementation
Modifier and Type | Interface and Description |
---|---|
static class |
IBluetoothManager.DefaultFactory
Default implementation of
IBluetoothManager.Factory . |
static interface |
IBluetoothManager.Factory
Interface used by the library to instantiate a new instance of
IBluetoothManager |
Modifier and Type | Field and Description |
---|---|
static IBluetoothManager.Factory |
DEFAULT_FACTORY
An instance of
IBluetoothManager.DefaultFactory used by the library, unless BleManagerConfig.bluetoothManagerImplementation is changed. |
static IBluetoothManager |
DEFAULT_INSTANCE
Default instance of
IBluetoothManager used by the library, unless BleManagerConfig.bluetoothManagerImplementation is changed. |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelDiscovery() |
boolean |
disable() |
boolean |
enable() |
java.lang.String |
getAddress() |
int |
getBleState() |
java.util.Set<P_DeviceHolder> |
getBondedDevices() |
int |
getConnectionState(IBluetoothDevice device,
int profile) |
java.lang.String |
getName() |
android.bluetooth.BluetoothAdapter |
getNativeAdaptor() |
android.bluetooth.BluetoothManager |
getNativeManager() |
android.bluetooth.BluetoothDevice |
getRemoteDevice(java.lang.String macAddress) |
int |
getState() |
boolean |
isBluetooth5HighSpeedSupported() |
boolean |
isBluetooth5LongRangeSupported() |
boolean |
isBluetoothEnabled() |
boolean |
isLocationEnabledForScanning_byOsServices() |
boolean |
isLocationEnabledForScanning_byRuntimePermissions() |
boolean |
isLocationEnabledForScanning() |
boolean |
isManagerNull() |
boolean |
isMultipleAdvertisementSupported() |
P_ServerHolder |
openGattServer(android.content.Context context,
IServerListener listener) |
void |
resetManager(android.content.Context context) |
void |
setIBleManager(IBleManager mgr)
This gets called when the
IBleManager calls it's initConfigDependentMembers method. |
boolean |
setName(java.lang.String name) |
void |
startAdvertising(android.bluetooth.le.AdvertiseSettings settings,
android.bluetooth.le.AdvertiseData adData,
L_Util.AdvertisingCallback callback) |
boolean |
startDiscovery() |
boolean |
startLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback callback) |
void |
startLScan(int scanMode,
Interval delay,
L_Util.ScanCallback callback) |
void |
startMScan(int scanMode,
Interval delay,
L_Util.ScanCallback callback) |
boolean |
startPendingIntentScan(int scanMode,
Interval delay,
android.app.PendingIntent pendingIntent) |
void |
stopAdvertising() |
void |
stopLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback callback) |
void |
stopPendingIntentScan(android.app.PendingIntent pendingIntent) |
static final IBluetoothManager.Factory DEFAULT_FACTORY
IBluetoothManager.DefaultFactory
used by the library, unless BleManagerConfig.bluetoothManagerImplementation
is changed.static final IBluetoothManager DEFAULT_INSTANCE
IBluetoothManager
used by the library, unless BleManagerConfig.bluetoothManagerImplementation
is changed.void setIBleManager(IBleManager mgr)
IBleManager
calls it's initConfigDependentMembers method. This is called
upon first instantiation of the manager class, and whenever BleManager.setConfig(BleManagerConfig)
is
called.int getConnectionState(IBluetoothDevice device, int profile)
boolean startDiscovery()
boolean cancelDiscovery()
boolean isManagerNull()
boolean disable()
boolean enable()
boolean isMultipleAdvertisementSupported()
boolean isBluetooth5LongRangeSupported()
boolean isBluetooth5HighSpeedSupported()
void resetManager(android.content.Context context)
int getState()
int getBleState()
java.lang.String getAddress()
java.lang.String getName()
boolean setName(java.lang.String name)
java.util.Set<P_DeviceHolder> getBondedDevices()
android.bluetooth.BluetoothAdapter getNativeAdaptor()
android.bluetooth.BluetoothManager getNativeManager()
P_ServerHolder openGattServer(android.content.Context context, IServerListener listener)
void startAdvertising(android.bluetooth.le.AdvertiseSettings settings, android.bluetooth.le.AdvertiseData adData, L_Util.AdvertisingCallback callback)
void stopAdvertising()
boolean isLocationEnabledForScanning_byOsServices()
boolean isLocationEnabledForScanning_byRuntimePermissions()
boolean isLocationEnabledForScanning()
boolean isBluetoothEnabled()
void startLScan(int scanMode, Interval delay, L_Util.ScanCallback callback)
void startMScan(int scanMode, Interval delay, L_Util.ScanCallback callback)
boolean startLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback callback)
void stopLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback callback)
void stopPendingIntentScan(android.app.PendingIntent pendingIntent)
boolean startPendingIntentScan(int scanMode, Interval delay, android.app.PendingIntent pendingIntent)
android.bluetooth.BluetoothDevice getRemoteDevice(java.lang.String macAddress)