public interface IBluetoothDevice
BluetoothDevice
.for the default implementation
Modifier and Type | Interface and Description |
---|---|
static class |
IBluetoothDevice.DefaultFactory
Default implementation of
IBluetoothDevice.Factory . |
static interface |
IBluetoothDevice.Factory
Interface used by the library to instantiate a new instance of
IBluetoothDevice |
Modifier and Type | Field and Description |
---|---|
static IBluetoothDevice.Factory |
DEFAULT_FACTORY
An instance of
IBluetoothDevice.DefaultFactory used by the library, unless BleDeviceConfig.bluetoothDeviceFactory is changed. |
static IBluetoothDevice |
NULL
Null instance of the
IBluetoothDevice interface (rather than instantiating each time it's used). |
Modifier and Type | Method and Description |
---|---|
boolean |
cancelBond() |
android.bluetooth.BluetoothGatt |
connect(android.content.Context context,
boolean useAutoConnect,
android.bluetooth.BluetoothGattCallback callback) |
boolean |
createBond() |
boolean |
createBondSneaky(java.lang.String methodName,
boolean loggingEnabled) |
boolean |
equals(IBluetoothDevice device) |
java.lang.String |
getAddress() |
BleDevice |
getBleDevice() |
int |
getBondState() |
java.lang.String |
getName() |
android.bluetooth.BluetoothDevice |
getNativeDevice() |
void |
init() |
boolean |
isConnected() |
boolean |
isDeviceNull() |
boolean |
removeBond() |
void |
setNativeDevice(android.bluetooth.BluetoothDevice device,
P_DeviceHolder deviceHolder) |
void |
updateBleDevice(IBleDevice device) |
static final IBluetoothDevice.Factory DEFAULT_FACTORY
IBluetoothDevice.DefaultFactory
used by the library, unless BleDeviceConfig.bluetoothDeviceFactory
is changed.static final IBluetoothDevice NULL
IBluetoothDevice
interface (rather than instantiating each time it's used).void init()
void setNativeDevice(android.bluetooth.BluetoothDevice device, P_DeviceHolder deviceHolder)
int getBondState()
java.lang.String getAddress()
java.lang.String getName()
boolean createBond()
boolean isDeviceNull()
boolean removeBond()
boolean cancelBond()
boolean equals(IBluetoothDevice device)
boolean createBondSneaky(java.lang.String methodName, boolean loggingEnabled)
boolean isConnected()
android.bluetooth.BluetoothDevice getNativeDevice()
android.bluetooth.BluetoothGatt connect(android.content.Context context, boolean useAutoConnect, android.bluetooth.BluetoothGattCallback callback)
void updateBleDevice(IBleDevice device)
BleDevice getBleDevice()