See: Description
Interface | Description |
---|---|
BitwiseEnum |
Contract to force
enum implementors to comply to common bitwise operations. |
BluetoothEnabler.BluetoothEnablerFilter |
Provide an implementation to
BluetoothEnabler.BluetoothEnabler(Activity, BluetoothEnablerFilter) to receive callbacks or simply use the provided class
BluetoothEnabler.DefaultBluetoothEnablerFilter by calling BluetoothEnabler.start(Activity) . |
ForEach_Breakable<T> | |
ForEach_Returning<T> | |
ForEach_Void<T> | |
FutureData |
A simple interface whose implementations should be passed to methods like
BleDevice.write(UUID, FutureData)
so you can provide time-sensitive data at the last possible moment. |
GenericListener_Void<T_Event extends Event> | |
HistoricalDataCursor |
This interface defines a wrapper around a database cursor (similar to
Cursor )
specific to a database representing a series of HistoricalData serializations. |
State |
Bitwise enum contract for representing the state of devices and managers.
|
UsesCustomNull |
Interface implemented by some enums and mostly other
Immutable structs
that have custom "null" behavior in place of Java's built-in null . |
UuidNameMap |
Provide an implementation to
BleManagerConfig.uuidNameMaps . |
Class | Description |
---|---|
BasicUuidNameMap |
Manual convenience implementation of
UuidNameMap that's basically just a HashMap . |
BleScanInfo | |
BluetoothEnabler |
This class is used to handle the new hairy logic for getting bluetooth low-energy scan results that is introduced with
Build.VERSION_CODES.M . |
BluetoothEnabler.BluetoothEnablerFilter.BluetoothEnablerEvent |
Events passed to
BluetoothEnabler.BluetoothEnablerFilter.onEvent(BluetoothEnablerEvent) so that the programmer can assign logic to the user's decision to
enable or disable certain required permissions and settings. |
BluetoothEnabler.BluetoothEnablerFilter.Please |
Return value for the interface method
BluetoothEnabler.BluetoothEnablerFilter.onEvent(BluetoothEnablerEvent) . |
BluetoothEnabler.DefaultBluetoothEnablerFilter |
A default implementation of BluetoothEnablerListener used in
BluetoothEnabler.start(Activity) . |
Distance |
Wrapper for a positive-only physical distance supporting various units of measurement.
|
EmptyCursor |
An implementation of
Cursor used for error conditions and things like that where we don't want to return null. |
EmptyIterator<T> |
Convenience class for implementing an
Iterator with no elements. |
EpochTime |
A class fulfilling a similar role to Java's built-in
Date , i.e. |
EpochTimeRange |
Class representing a range of time between two instances of
EpochTime . |
Event |
Abstract base class for all events in SweetBlue, e.g.
|
EventQueue | |
ForEach_Breakable.Please | |
HistoricalData |
Simple struct wrapping arbitrary blob data as a byte array along with an epoch timestamp
marking when the blob was originally created/collected.
|
HistoricalDataQuery |
Class used to construct queries for
BleNode.select() . |
HistoricalDataQuery.Part | |
HistoricalDataQuery.Part_AllowsFrom | |
HistoricalDataQuery.Part_AllowsSelectColumn | |
HistoricalDataQuery.Part_ClauseColumn | |
HistoricalDataQuery.Part_From | |
HistoricalDataQuery.Part_Function | |
HistoricalDataQuery.Part_Select | |
HistoricalDataQuery.Part_SelectColumn | |
HistoricalDataQuery.Part_Where | |
Interval |
Used to set time-based options in
BleManagerConfig and BleDeviceConfig and
for various methods and callbacks of BleManager and BleDevice . |
Percent |
Wrapper for a percentage value, generally from 0-100%;
|
Pointer<T> |
Provides a way to be able to change a value declared in the outer scope of an anonymous inline class.
|
PresentData |
Simple dummy implementation of
FutureData that just returns whatever is passed into the constructor. |
ReflectionUuidNameMap |
Convenience implementation of
UuidNameMap that takes a Class object
and through reflection attempts to parse out all the static UUID members, for example
on Uuids . |
SingleElementIterator<T> |
Convenience class for implementing an
Iterator with a single element. |
State.ChangeEvent<T_State extends State> |
Abstract base class for
BleDevice.StateListener.StateEvent and BleManager.StateListener.StateEvent . |
TimeEstimator |
A zero-dependency utility class to track running average time of operations
and estimate the completion time of long running operations like firmware updates.
|
Unit<T extends Unit> |
Common abstract base class for all units of measurement, providing default convenience methods
for things like comparison.
|
UpdateLoop |
Zero-dependency (besides Android) utility class for creating an update loop.
|
Utils |
Some static utility methods that are probably not very useful outside the library.
|
Utils_Byte |
Utility methods for byte and bit twiddling.
|
Utils_Reflection |
Some utilities for dealing with raw byte array scan records.
|
Utils_Rssi |
Some static utility methods for RSSI-related calculations.
|
Utils_ScanRecord |
Some utilities for dealing with raw byte array scan records.
|
Utils_State |
Some helper utilities for dealing with
State implementors. |
Utils_String |
Utility methods for string manipulation and creation needed by SweetBlue, mostly for debug purposes.
|
Utils_Time |
Utilities for dealing with time with an emphasis on BLE.
|
UuidNameMap_ListWrapper |
Convenience implementation that wraps a
List of other UuidNameMap instances. |
Uuids |
A collection of standard
UUID s for services, characteristics, and descriptors. |
Enum | Description |
---|---|
BluetoothEnabler.BluetoothEnablerFilter.Stage |
Enumerates changes in the "enabling" stage before a
Bluetooth LE scan is started.
|
BluetoothEnabler.BluetoothEnablerFilter.Status |
The Status of the current
BluetoothEnabler.BluetoothEnablerFilter.Stage |
HistoricalDataColumn |
Enumeration/abstraction of database columns used to persist
HistoricalData . |
State.ChangeIntent |
Enumerates the intention behind a state change - as comprehensively as possible, whether the
application user intended for the state change to happen or not.
|
Error | Description |
---|---|
WrongThreadError |
Most of the methods of core SweetBlue classes like
BleDevice , BleManager , and BleServer
must be called from the main thread, similar to how Android will complain if you try to edit a View
from another thread. |