public interface Settings extends MetaWearBoard.Module
Modifier and Type | Interface and Description |
---|---|
static interface |
Settings.AdvertisementConfig
Wrapper class encapsulating the advertisement configuration
|
static interface |
Settings.BatteryState
Wrapper class encapsulating battery state information
|
static interface |
Settings.ConfigEditor
Interface for configuring the advertisement settings
|
static interface |
Settings.ConnectionParameterEditor
Interface for configuring the Bluetooth LE connection parameters
|
static interface |
Settings.ConnectionParameters
Wrapper class containing the connection parameters
|
static interface |
Settings.EventSelector
Selector for available events
|
static interface |
Settings.SourceSelector
Selector for available data
|
Modifier and Type | Method and Description |
---|---|
Settings.ConfigEditor |
configure()
Configures advertisement settings
|
Settings.ConnectionParameterEditor |
configureConnectionParameters()
Configures the connection parameters
|
Settings.EventSelector |
handleEvent()
Initiates the creation of a route for handling settings events
|
void |
initiateBonding()
Trigger the board to initiate the Bluetooth bonding process with the connected Android device
|
void |
keepBond()
Keep the bond on disconnect
|
AsyncOperation<Settings.AdvertisementConfig> |
readAdConfig()
Reads the current advertisement settings
|
void |
readBatteryState()
Reads the battery state, defaults to non-silent read
|
void |
readBatteryState(boolean silent)
Reads the battery state
|
AsyncOperation<Settings.ConnectionParameters> |
readConnectionParameters()
Reads the current connection parameters
|
void |
removeBond()
Remove Bluetooth bond to the board on disconnect
|
Settings.SourceSelector |
routeData() |
void |
startAdvertisement()
Trigger the board to start advertising
|
Settings.ConnectionParameterEditor configureConnectionParameters()
AsyncOperation<Settings.ConnectionParameters> readConnectionParameters()
Settings.ConfigEditor configure()
AsyncOperation<Settings.AdvertisementConfig> readAdConfig()
void removeBond()
void keepBond()
void startAdvertisement()
void initiateBonding()
Settings.EventSelector handleEvent()
Settings.SourceSelector routeData()
void readBatteryState()
void readBatteryState(boolean silent)
silent
- True if it should be a silent read