qisdk / com.aldebaran.qi.sdk.object.touch / TouchState

TouchState

@QiStruct open class TouchState

Description of a touch sensor state.

Since
1

Constructors

<init>

Create a new TouchState

TouchState(touched: Boolean, time: Long)

Functions

equals

open fun equals(other: Any?): Boolean

getTime

The last time the sensor state changed.

open fun getTime(): Long

getTouched

The current state of the sensor: touched or not.

open fun getTouched(): Boolean

hashCode

open fun hashCode(): Int

setTime

Setter for time The last time the sensor state changed.

open fun setTime(time: Long): Unit

setTouched

Setter for touched The current state of the sensor: touched or not.

open fun setTouched(touched: Boolean): Unit

toString

open fun toString(): String