Kallisto¶
-
public abstract class
Kallisto¶ Class representing a kallisto device.
Note that the discovery of the information of each kallisto device is opportunistic. When the first connection occurs by a request like
KallistoSensorManager.registerListener(SensorEventListener,KallistoSensor,int)or any information is requested likegetFirmwareVersion(), everything will be populated.Not every kallisto device contains all types of sensors. Each device is free to implement any combination of sensors.
Methods¶
getActuator¶
-
public final KallistoActuator
getActuator(int handle)¶ Get this kallisto device
KallistoActuatorwith the passed handle.- Parameters
handle – The handle of the desired
KallistoActuator.
- Returns
The desired
KallistoActuatorornullif not found.
getActuatorByType¶
-
public final List<KallistoActuator>
getActuatorByType(int type)¶ Get this kallisto device
KallistoActuatorlist of the passed type.- Parameters
type – The type of desired
kallistoActuators. SeeKallistoActuatorfor the available types.
- Returns
A list with the desired
KallistoActuatorlist of the passed type.
getActuators¶
-
public final List<KallistoActuator>
getActuators()¶ Get this kallisto device
KallistoActuatorlist.- Returns
A
KallistoActuatorlist with all the actuators of this kallisto device.
getAddress¶
getBatteryChangesSupport¶
-
public final boolean
getBatteryChangesSupport()¶ Checks if this kallisto device supports battery state-of-charge changes.
- Returns
trueif this kallisto supports battery changes.
getDfuSupport¶
-
public boolean
getDfuSupport()¶ Checks if this kallisto device supports device firmware updates.
- Returns
trueif this kallisto supports DFU.
getFirmwareVersion¶
getHardwareVersion¶
getManufacturer¶
getModeChangeSupport¶
-
public boolean
getModeChangeSupport()¶ Get mode change support of this kallisto device.
- Returns
trueif this kallisto device supports mode changes.
getName¶
getSensor¶
-
public final KallistoSensor
getSensor(int handle)¶ Get this kallisto device
KallistoSensorwith the passed handle.- Parameters
handle – The handle of the desired
KallistoSensor.
- Returns
The desired
KallistoSensorornullif not found.
getSensorByType¶
-
public final List<KallistoSensor>
getSensorByType(int type)¶ Get this kallisto device
KallistoSensorlist of the passed type.- Parameters
type – The type of desired
kallistoSensors. SeeKallistoSensorfor the available types.
- Returns
A list with the desired
KallistoSensorlist of the passed type.
getSensors¶
-
public final List<KallistoSensor>
getSensors()¶ Get this kallisto device
KallistoSensorlist.- Returns
A
KallistoSensorlist with all the sensors of this kallisto device.
getSoftwareVersion¶
hasActuators¶
-
public final boolean
hasActuators()¶ Checks if this kallisto device has any actuators.
- Returns
trueif this kallisto has any actuators.
hasSensors¶
-
public final boolean
hasSensors()¶ Checks if this kallisto device has any sensors.
- Returns
trueif this kallisto has any sensors.
isBeingUsed¶
-
public abstract boolean
isBeingUsed()¶ Checks if this kallisto device is being used.
- Returns
trueif this kallisto is being used.
isBonded¶
-
public abstract boolean
isBonded()¶ Get the pairing state of this kallisto device.
- Returns
trueif this kallisto is bonded.
isInLinkLoss¶
-
public abstract boolean
isInLinkLoss()¶ Checks if this kallisto device is in Link Loss.
Link loss represents a state where the device should be connected but that connection was lost. The system will actively try to recover the connection.
- Returns
trueif this kallisto is in Link Loss.