qisdk / com.aldebaran.qi.sdk.object.focus / FocusOwner

FocusOwner

interface FocusOwner

A FocusOwner represents a focus being taken from the focus service. It serves only once, and emits released() whenever the focus is released. A FocusOwner that was released is invalid.

Since
1

Types

Async

interface Async

OnReleasedListener

Listener for released signal

interface OnReleasedListener

Functions

addOnReleasedListener

Add a OnReleasedListener

abstract fun addOnReleasedListener(onReleasedListener: OnReleasedListener!): Unit

async

abstract fun async(): Async!

release

Release the focus and invalidate this FocusOwner.

abstract fun release(): Unit

removeAllOnReleasedListeners

Remove all OnReleasedListener

abstract fun removeAllOnReleasedListeners(): Unit

removeOnReleasedListener

Remove a OnReleasedListener

abstract fun removeOnReleasedListener(onReleasedListener: OnReleasedListener!): Unit

setOnReleasedListener

Set a OnReleasedListener

abstract fun setOnReleasedListener(onReleasedListener: OnReleasedListener!): Unit

token

The token carried by this FocusOwner.

abstract fun token(): String!