public interface IBluetoothServer
BluetoothGattServer
.for default implementation
Modifier and Type | Interface and Description |
---|---|
static class |
IBluetoothServer.DefaultFactory
Default implementation of
IBluetoothServer.Factory . |
static interface |
IBluetoothServer.Factory
Interface used by the library to instantiate a new instance of
IBluetoothServer |
Modifier and Type | Field and Description |
---|---|
static IBluetoothServer.Factory |
DEFAULT_FACTORY
An instance of
IBluetoothServer.DefaultFactory used by the library, unless BleManagerConfig.serverFactory is changed. |
Modifier and Type | Method and Description |
---|---|
boolean |
addService(BleService service) |
void |
cancelConnection(P_DeviceHolder device) |
void |
clearServices() |
void |
close() |
boolean |
connect(P_DeviceHolder device,
boolean autoConnect) |
android.bluetooth.BluetoothGattServer |
getNativeServer() |
BleService |
getService(java.util.UUID uuid) |
java.util.List<BleService> |
getServices() |
boolean |
isServerNull() |
boolean |
notifyCharacteristicChanged(P_DeviceHolder device,
BleCharacteristic characteristic,
boolean confirm) |
boolean |
removeService(BleService service) |
boolean |
sendResponse(P_DeviceHolder device,
int requestId,
int status,
int offset,
byte[] value) |
static final IBluetoothServer.Factory DEFAULT_FACTORY
IBluetoothServer.DefaultFactory
used by the library, unless BleManagerConfig.serverFactory
is changed.boolean isServerNull()
boolean addService(BleService service)
void cancelConnection(P_DeviceHolder device)
void clearServices()
void close()
boolean connect(P_DeviceHolder device, boolean autoConnect)
BleService getService(java.util.UUID uuid)
java.util.List<BleService> getServices()
boolean notifyCharacteristicChanged(P_DeviceHolder device, BleCharacteristic characteristic, boolean confirm)
boolean removeService(BleService service)
boolean sendResponse(P_DeviceHolder device, int requestId, int status, int offset, byte[] value)
android.bluetooth.BluetoothGattServer getNativeServer()