qisdk / com.aldebaran.qi.sdk.object.focus / Focus / Async

Async

interface Async

Functions

check

Check the FocusOwner provided to tell whether it is recognized as representing the current focused activity.

abstract fun check(focusOwner: FocusOwner!): Future<Boolean!>!

take

Take the focus. It may fail if the robot is busy and focused on something else, for example in an interactive activity or in safeguard.

abstract fun take(): Future<FocusOwner!>!

Take the focus from the given token. If the token matched the one of the current focus, the ownership is transmitted to the taker. Any user having the FocusOwner would be released. Otherwise, it behaves like takeFocus.

abstract fun take(token: String!): Future<FocusOwner!>!