public interface SensorModes extends SensorMode
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
getAvailableModes()
Return a list of string descriptions for the sensors available modes.
|
int |
getCurrentMode()
Gets the index number of the current mode.
|
SensorMode |
getMode(int mode)
Return the sample provider interface for the requested mode
|
SensorMode |
getMode(java.lang.String modeName)
Return the sample provider for the request mode
|
int |
getModeCount()
Gets the number of supported modes
|
void |
setCurrentMode(int mode)
Sets the current mode for fetching samples
|
void |
setCurrentMode(java.lang.String modeName)
Sets the current mode for fetching samples
|
getName
fetchSample, sampleSize
java.util.ArrayList<java.lang.String> getAvailableModes()
SensorMode getMode(int mode)
mode
- the mode numberSensorMode getMode(java.lang.String modeName)
modeName
- the name/description of the modevoid setCurrentMode(int mode)
mode
- the index number of the mode. Index number corresponds with the item order of the list from getAvailableModes().void setCurrentMode(java.lang.String modeName)
modeName
- the name of the mode. name corresponds with the item value of the list from getAvailableModes().int getCurrentMode()
int getModeCount()