Peripheral manager class. The peripheral manager may manage the known peripherals of an application.
More...
|
| PeripheralManager (ICentral central, Func< IPeripheral, AdvertiseInfoList, int, TPeripheral > createPeripheralFunction) |
| Create a peripheral manager More...
|
|
void | Clear () |
| Clear the list with all peripherals.
|
|
void | Add (TPeripheral peripheral) |
| Add peripheral to the list of known peripherals.
|
|
void | Remove (TPeripheral peripheral) |
| Remove peripheral from the list of known peripherals.
|
|
void | Remove (IEnumerable< TPeripheral > peripheralsToRemove) |
| Remove peripherals from the list of known peripherals.
|
|
TPeripheral | Find (Uuid uuid) |
| Find peripheral according to it's UUID.
|
|
void | StartScan () |
| Start scan for peripherals.
|
|
void | StopScan () |
| Stop scan for peripherals.
|
|
virtual void | Dispose () |
| Dispose the peripheral manager. More...
|
|
|
ILog | Log [get] |
| Log instance More...
|
|
ICentral | Central [get] |
| Gets the central instance the peripheral manager uses. More...
|
|
bool | IsScanning [get] |
|
Uuid [] | UuidFilter [get, set] |
|
int | PeripheralInvisibleTimeout [get, set] |
|
bool | DisposePeripheralOnRemove [get, set] |
|
bool | UpdateNameByAdvertisedData [get, set] |
|
bool | IsBluetoothDisabled [get] |
|
bool | IsBluetoothEnabled [get] |
|
IEnumerable< TPeripheral > | Peripherals [get] |
|
bool | IsDisposed [get] |
|
bool | IsScanning [get] |
| Check if the peripheral manager is scanning for peripherals or not. More...
|
|
Uuid [] | UuidFilter [get, set] |
| Array with service UUID's to check in advertise data. Only peripherals advertising one of the UUID's are added to the peripheral list. If set to null or an empty array all visible peripherals are added to the list. More...
|
|
int | PeripheralInvisibleTimeout [get, set] |
| Duration in seconds a device must be invisible (no advertising and not connected) until it gets removed from the peripheral manger. If the value is set to 0 the peripherals are not removed from the list automatically. More...
|
|
bool | DisposePeripheralOnRemove [get, set] |
| Enable/Disable the call of the dispose method on removed peripherals. By default this is enabled but if the removed peripherals should be disposed later the automatic Dispose may be disabled. More...
|
|
bool | UpdateNameByAdvertisedData [get, set] |
| Enable/Disable that advertised name information is used to update the peripheral name. If disabled the assigned name given by the bluetooth stack is always used. More...
|
|
bool | IsBluetoothDisabled [get] |
| Check if the bluetooth interface is disabled. Because there are more state of the bluetooth adapter than disabled and enabled, IsBluetoothDisabled is not equal to !IsBluetoothEnabled at any time More...
|
|
bool | IsBluetoothEnabled [get] |
| Check if the bluetooth interface is enabled. Because there are more state of the bluetooth adapter than disabled and enabled, IsBluetoothDisabled is not equal to !IsBluetoothEnabled at any time More...
|
|
IEnumerable< TPeripheral > | Peripherals [get] |
| Get a list with all managed peripherals. The returned list is a copy of the internal peripheral list. More...
|
|
bool | IsDisposed [get] |
| Check if the peripheral manager is already disposed. More...
|
|
Peripheral manager class. The peripheral manager may manage the known peripherals of an application.
- Template Parameters
-
TPeripheral | Class of the managed peripherals. They must implement the IManagedPeripheral interface. |