qisdk / com.aldebaran.qi.sdk.object.power / FlapSensor

FlapSensor

interface FlapSensor

Object representing a flap, that may be open or closed.

Since
6

Types

Async

interface Async

OnStateChangedListener

Listener for state property changed event

interface OnStateChangedListener

Functions

addOnStateChangedListener

Add a property changed listener for state

abstract fun addOnStateChangedListener(onStateChangedListener: OnStateChangedListener!): Unit

async

abstract fun async(): Async!

getFrame

Exposes the property frame value

abstract fun getFrame(): Frame!

getState

Exposes the property state value

abstract fun getState(): FlapState!

removeAllOnStateChangedListeners

Remove all state changed listeners

abstract fun removeAllOnStateChangedListeners(): Unit

removeOnStateChangedListener

Remove a property changed listener for state

abstract fun removeOnStateChangedListener(onStateChangedListener: OnStateChangedListener!): Unit

setOnStateChangedListener

Set a property changed listener for state

abstract fun setOnStateChangedListener(onStateChangedListener: OnStateChangedListener!): Unit