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
KallistoActuator
with the passed handle.- Parameters
handle – The handle of the desired
KallistoActuator
.
- Returns
The desired
KallistoActuator
ornull
if not found.
getActuatorByType¶
-
public final List<KallistoActuator>
getActuatorByType
(int type)¶ Get this kallisto device
KallistoActuator
list of the passed type.- Parameters
type – The type of desired
kallistoActuators
. SeeKallistoActuator
for the available types.
- Returns
A list with the desired
KallistoActuator
list of the passed type.
getActuators¶
-
public final List<KallistoActuator>
getActuators
()¶ Get this kallisto device
KallistoActuator
list.- Returns
A
KallistoActuator
list 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
true
if this kallisto supports battery changes.
getDfuSupport¶
-
public boolean
getDfuSupport
()¶ Checks if this kallisto device supports device firmware updates.
- Returns
true
if this kallisto supports DFU.
getFirmwareVersion¶
getHardwareVersion¶
getManufacturer¶
getModeChangeSupport¶
-
public boolean
getModeChangeSupport
()¶ Get mode change support of this kallisto device.
- Returns
true
if this kallisto device supports mode changes.
getName¶
getSensor¶
-
public final KallistoSensor
getSensor
(int handle)¶ Get this kallisto device
KallistoSensor
with the passed handle.- Parameters
handle – The handle of the desired
KallistoSensor
.
- Returns
The desired
KallistoSensor
ornull
if not found.
getSensorByType¶
-
public final List<KallistoSensor>
getSensorByType
(int type)¶ Get this kallisto device
KallistoSensor
list of the passed type.- Parameters
type – The type of desired
kallistoSensors
. SeeKallistoSensor
for the available types.
- Returns
A list with the desired
KallistoSensor
list of the passed type.
getSensors¶
-
public final List<KallistoSensor>
getSensors
()¶ Get this kallisto device
KallistoSensor
list.- Returns
A
KallistoSensor
list with all the sensors of this kallisto device.
getSoftwareVersion¶
hasActuators¶
-
public final boolean
hasActuators
()¶ Checks if this kallisto device has any actuators.
- Returns
true
if this kallisto has any actuators.
hasSensors¶
-
public final boolean
hasSensors
()¶ Checks if this kallisto device has any sensors.
- Returns
true
if this kallisto has any sensors.
isBeingUsed¶
-
public abstract boolean
isBeingUsed
()¶ Checks if this kallisto device is being used.
- Returns
true
if this kallisto is being used.
isBonded¶
-
public abstract boolean
isBonded
()¶ Get the pairing state of this kallisto device.
- Returns
true
if 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
true
if this kallisto is in Link Loss.